Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008483/0.0008484, allocations: 177.7 kB / 16.12 MB, free: 5.688 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.275/1.275, allocations: 205 MB / 221.9 MB, free: 9.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007395/0.0007395, allocations: 88.19 kB / 269.9 MB, free: 8.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07277/0.07277, allocations: 12.57 MB / 330.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 16 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07855, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.00151/0.08012, allocations: 1.27 MB / 442.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006317/0.08076, allocations: 0.4997 MB / 442.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.76e-05/0.08086, allocations: 0 / 442.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.589e-05/0.08094, allocations: 7.938 kB / 442.9 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.08108, allocations: 11.92 kB / 442.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.08133, allocations: 31.91 kB / 443 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.283e-05/0.08143, allocations: 35.86 kB / 443 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.918e-05/0.08154, allocations: 12 kB / 443 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.5e-05/0.08161, allocations: 23.84 kB / 443 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.864e-05/0.08168, allocations: 15.92 kB / 443 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.0817, allocations: 0 / 443 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.111e-05/0.08171, allocations: 4 kB / 443.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.73e-05/0.08177, allocations: 11.94 kB / 443.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.972e-05/0.0818, allocations: 23.75 kB / 443.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.801e-05/0.0819, allocations: 47.8 kB / 443.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.08191, allocations: 0 / 443.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.08191, allocations: 0 / 443.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.08192, allocations: 0 / 443.1 MB, free: 14.29 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003848/0.08231, allocations: 359.5 kB / 443.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.08237, allocations: 16.03 kB / 443.5 MB, free: 13.87 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.63e-05/0.0824, allocations: 30.75 kB / 443.5 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.796e-05/0.08243, allocations: 8.844 kB / 443.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.08259, allocations: 184.2 kB / 443.7 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.08261, allocations: 4.312 kB / 443.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.08262, allocations: 4.375 kB / 443.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.08286, allocations: 101.2 kB / 443.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.08288, allocations: 0 / 443.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.08289, allocations: 0 / 443.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.0829, allocations: 3.938 kB / 443.8 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.4e-05/0.08298, allocations: 23.98 kB / 443.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002467/0.08324, allocations: 265.6 kB / 444.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.814e-05/0.08332, allocations: 49.16 kB / 444.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.47e-05/0.08337, allocations: 25.77 kB / 444.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.0834, allocations: 0 / 444.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.08342, allocations: 34.56 kB / 444.2 MB, free: 13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.08343, allocations: 0 / 444.2 MB, free: 13 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002075/0.08364, allocations: 73.52 kB / 444.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.08368, allocations: 81.11 kB / 444.4 MB, free: 12.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.0838, allocations: 145 kB / 444.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.223e-06/0.08381, allocations: 25.7 kB / 444.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.367e-05/0.08385, allocations: 92.12 kB / 444.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.223e-05/0.08387, allocations: 0 / 444.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.76e-05/0.0839, allocations: 9.719 kB / 444.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.285e-05/0.08395, allocations: 318.8 kB / 444.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.941e-05/0.084, allocations: 11.98 kB / 445 MB, free: 12.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.359e-05/0.08404, allocations: 21.72 kB / 445 MB, free: 12.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.681e-05/0.08411, allocations: 33.7 kB / 445 MB, free: 12.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.08412, allocations: 0 / 445 MB, free: 12.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.675e-05/0.08422, allocations: 65.59 kB / 445.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.08425, allocations: 7.984 kB / 445.1 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.08426, allocations: 4 kB / 445.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.08e-05/0.08427, allocations: 0 / 445.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.934e-05/0.08435, allocations: 4 kB / 445.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.08436, allocations: 0 / 445.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.248e-05/0.0844, allocations: 4 kB / 445.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.08441, allocations: 3.938 kB / 445.1 MB, free: 12.04 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.602e-05/0.08447, allocations: 126.7 kB / 445.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/0.08452, allocations: 41.55 kB / 445.3 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.717e-05/0.08456, allocations: 23.8 kB / 445.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.08456, allocations: 0 / 445.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.08457, allocations: 0 / 445.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.08458, allocations: 4 kB / 445.3 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.0847, allocations: 173.6 kB / 445.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.08471, allocations: 0 / 445.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.017e-05/0.08475, allocations: 8 kB / 445.5 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.08476, allocations: 8.031 kB / 445.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.08477, allocations: 3.938 kB / 445.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.08478, allocations: 0 / 445.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.08478, allocations: 0 / 445.5 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/0.0849, allocations: 168.3 kB / 445.6 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.121e-05/0.08494, allocations: 93 kB / 445.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.08496, allocations: 0 / 445.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.977e-05/0.08503, allocations: 4 kB / 445.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.664e-05/0.08506, allocations: 3.984 kB / 445.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.055e-06/0.08507, allocations: 0 / 445.7 MB, free: 11.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.966e-05/0.08511, allocations: 103.3 kB / 445.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08512, allocations: 4 kB / 445.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001899/0.08532, allocations: 4 kB / 445.9 MB, free: 11.19 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002698/0.08559, allocations: 0.6975 MB / 446.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001123/0.08571, allocations: 28.02 kB / 446.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.08572, allocations: 0 / 446.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.387e-05/0.08576, allocations: 11.98 kB / 446.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.08607, allocations: 15.97 kB / 446.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/0.08698, allocations: 1.336 MB / 447.9 MB, free: 8.984 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.08711, allocations: 0.6849 MB / 448.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.601e-05/0.08714, allocations: 4 kB / 448.6 MB, free: 8.27 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.607e-05/0.08718, allocations: 15.42 kB / 448.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.08719, allocations: 0 / 448.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01081/0.09801, allocations: 1.246 MB / 449.9 MB, free: 7 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001504/0.09819, allocations: 229.6 kB / 450.1 MB, free: 6.742 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.66/1.758, allocations: 7.938 kB / 450.1 MB, free: 6.734 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches