Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 104.1 kB / 17.58 MB, free: 5.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002179/0.002179, allocations: 191.9 kB / 18.51 MB, free: 4.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.26/2.26, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002393/0.002393, allocations: 55.91 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.153, allocations: 46.63 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.007657/0.1607, allocations: 2.987 MB / 330.4 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004279/0.1651, allocations: 1.181 MB / 331.5 MB, free: 192 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003957/0.1656, allocations: 4 kB / 331.6 MB, free: 188 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009592/0.1666, allocations: 167.2 kB / 331.7 MB, free: 20 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008945/0.1675, allocations: 190.8 kB / 331.9 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007313/0.1683, allocations: 143.7 kB / 332 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008454/0.1691, allocations: 426.2 kB / 332.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.1695, allocations: 107.7 kB / 332.6 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.1698, allocations: 175.3 kB / 332.7 MB, free: 15 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.1703, allocations: 203.1 kB / 332.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.384e-05/0.1704, allocations: 28 kB / 333 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.1707, allocations: 67.98 kB / 333 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.1708, allocations: 75.75 kB / 333.1 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003199/0.1712, allocations: 194.9 kB / 333.3 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008562/0.172, allocations: 454.5 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.1721, allocations: 0 / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.1721, allocations: 4 kB / 333.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.1721, allocations: 0 / 333.7 MB, free: 13.99 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001994/0.1741, allocations: 0.6906 MB / 334.4 MB, free: 13.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.083e-05/0.1742, allocations: 8.031 kB / 334.4 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001863/0.1744, allocations: 75.19 kB / 334.5 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001942/0.1746, allocations: 48.39 kB / 334.6 MB, free: 13.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006638/0.1753, allocations: 332.3 kB / 334.9 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/0.1754, allocations: 16.94 kB / 334.9 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/0.1755, allocations: 35.94 kB / 334.9 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008049/0.1763, allocations: 303.1 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.1763, allocations: 4 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.973e-05/0.1764, allocations: 12 kB / 335.2 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.1764, allocations: 8 kB / 335.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000593/0.177, allocations: 182.1 kB / 335.4 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00227/0.1793, allocations: 0.8716 MB / 336.3 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009341/0.1803, allocations: 259.4 kB / 336.6 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.1806, allocations: 101.4 kB / 336.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.978e-05/0.1807, allocations: 4.281 kB / 336.7 MB, free: 10.88 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/0.1813, allocations: 164.9 kB / 336.8 MB, free: 10.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=34): time 4.879e-06/0.1814, allocations: 4 kB / 336.8 MB, free: 10.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.004229/0.1856, allocations: 1.327 MB / 338.1 MB, free: 9.262 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001593/0.1858, allocations: 191.9 kB / 338.3 MB, free: 9.031 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000694/0.1865, allocations: 352.5 kB / 338.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.056e-05/0.1866, allocations: 37.7 kB / 338.7 MB, free: 8.629 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.1868, allocations: 192.5 kB / 338.9 MB, free: 8.438 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.187, allocations: 145.9 kB / 339 MB, free: 8.293 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.1873, allocations: 78.03 kB / 339.1 MB, free: 8.211 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002307/0.1875, allocations: 350.7 kB / 339.5 MB, free: 7.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.1878, allocations: 92.83 kB / 339.6 MB, free: 7.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000427/0.1883, allocations: 177.3 kB / 339.7 MB, free: 7.559 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006857/0.189, allocations: 246.2 kB / 340 MB, free: 7.305 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.189, allocations: 0 / 340 MB, free: 7.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001083/0.1901, allocations: 354.3 kB / 340.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.743e-05/0.1901, allocations: 4 kB / 340.3 MB, free: 6.945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.1902, allocations: 7.984 kB / 340.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001601/0.1903, allocations: 24.97 kB / 340.4 MB, free: 6.91 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006019/0.191, allocations: 91.84 kB / 340.4 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001816/0.1928, allocations: 1.39 MB / 341.8 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.1932, allocations: 15.98 kB / 341.8 MB, free: 5.273 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/0.1933, allocations: 19.94 kB / 341.9 MB, free: 5.254 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003526/0.1937, allocations: 165.8 kB / 342 MB, free: 5.082 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.1938, allocations: 47.47 kB / 342.1 MB, free: 5.035 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.194, allocations: 47.95 kB / 342.1 MB, free: 4.984 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.194, allocations: 4 kB / 342.1 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.194, allocations: 0 / 342.1 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001098/0.1951, allocations: 0.6569 MB / 342.8 MB, free: 4.219 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001951/0.1971, allocations: 0.8564 MB / 343.6 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1971, allocations: 4 kB / 343.6 MB, free: 3.289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005615/0.1977, allocations: 71.91 kB / 343.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.1977, allocations: 0 / 343.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.026e-05/0.1978, allocations: 15.98 kB / 343.7 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.707e-06/0.1978, allocations: 4 kB / 343.7 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1978, allocations: 0 / 343.7 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.1991, allocations: 0.5541 MB / 344.3 MB, free: 2.617 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002582/0.1994, allocations: 136.8 kB / 344.4 MB, free: 2.465 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.938e-05/0.1995, allocations: 8 kB / 344.4 MB, free: 2.457 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004279/0.2, allocations: 16 kB / 344.4 MB, free: 2.441 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.2001, allocations: 31.89 kB / 344.5 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.972e-05/0.2002, allocations: 12 kB / 344.5 MB, free: 2.398 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004511/0.2006, allocations: 255 kB / 344.7 MB, free: 2.152 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2006, allocations: 3.938 kB / 344.7 MB, free: 2.148 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008064/0.2014, allocations: 96 kB / 344.8 MB, free: 2.055 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.003431/0.2049, allocations: 1.41 MB / 346.2 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001317/0.2062, allocations: 390.2 kB / 346.6 MB, free: 232 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.2063, allocations: 0 / 346.6 MB, free: 232 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004157/0.2067, allocations: 135.9 kB / 346.8 MB, free: 96 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.2078, allocations: 101.8 kB / 346.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.2161, allocations: 3.71 MB / 350.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000709/0.2168, allocations: 0.8118 MB / 351.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003648/0.2172, allocations: 47.25 kB / 351.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003618/0.2176, allocations: 131.4 kB / 351.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2176, allocations: 0 / 351.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04671/0.2644, allocations: 9.23 MB / 360.8 MB, free: 1.828 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.13/18.39, allocations: 12.39 kB / 360.8 MB, free: 1.816 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches