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.0013/0.001299, allocations: 110.7 kB / 17.28 MB, free: 6.176 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.001391/0.001391, allocations: 189.3 kB / 18.2 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.357/1.357, allocations: 205.1 MB / 224 MB, free: 12.44 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.001127/0.001127, allocations: 52.12 kB / 280.3 MB, free: 3.371 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08826/0.0894, allocations: 46.62 MB / 326.9 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004363/0.0938, allocations: 3.025 MB / 329.9 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.09562, allocations: 1.17 MB / 331.1 MB, free: 460 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.09578, allocations: 7.938 kB / 331.1 MB, free: 452 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004976/0.09633, allocations: 151.4 kB / 331.2 MB, free: 300 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003818/0.09672, allocations: 159.2 kB / 331.4 MB, free: 140 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003348/0.09707, allocations: 131.7 kB / 331.5 MB, free: 8 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004634/0.09754, allocations: 438.2 kB / 331.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.09774, allocations: 103.7 kB / 332 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.09794, allocations: 179.2 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.09817, allocations: 195.2 kB / 332.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.498e-05/0.09822, allocations: 28 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.09837, allocations: 71.98 kB / 332.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.398e-05/0.09847, allocations: 87.67 kB / 332.6 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.09865, allocations: 190.9 kB / 332.8 MB, free: 14.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.09911, allocations: 450.5 kB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.09913, allocations: 0 / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.09914, allocations: 0 / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.09916, allocations: 4 kB / 333.2 MB, free: 14.3 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.001077/0.1002, allocations: 0.6866 MB / 333.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.1003, allocations: 12.03 kB / 333.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.1004, allocations: 71.19 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1005, allocations: 48.47 kB / 334 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003773/0.1009, allocations: 324.3 kB / 334.4 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.1009, allocations: 24.94 kB / 334.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.907e-05/0.101, allocations: 27.94 kB / 334.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.1015, allocations: 311 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.1015, allocations: 4 kB / 334.7 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.979e-05/0.1016, allocations: 16 kB / 334.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.1016, allocations: 4 kB / 334.7 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.1019, allocations: 182.1 kB / 334.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.1032, allocations: 0.8716 MB / 335.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000508/0.1037, allocations: 260 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001572/0.1039, allocations: 97.39 kB / 336.1 MB, free: 11.19 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.159e-05/0.1039, allocations: 4.281 kB / 336.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003538/0.1043, allocations: 172.8 kB / 336.3 MB, free: 11 MB / 286.1 MB Notification: Performance of pre-optimization done (n=34): time 3.556e-06/0.1043, allocations: 3.984 kB / 336.3 MB, free: 11 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002222/0.1065, allocations: 1.331 MB / 337.6 MB, free: 9.559 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.1067, allocations: 187.9 kB / 337.8 MB, free: 9.332 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003727/0.1071, allocations: 352.5 kB / 338.2 MB, free: 8.977 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/0.1071, allocations: 37.64 kB / 338.2 MB, free: 8.934 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1072, allocations: 200.5 kB / 338.4 MB, free: 8.734 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.1074, allocations: 138 kB / 338.5 MB, free: 8.598 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.1075, allocations: 78.05 kB / 338.6 MB, free: 8.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.1076, allocations: 350.7 kB / 339 MB, free: 8.164 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.1078, allocations: 88.83 kB / 339 MB, free: 8.078 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.108, allocations: 181.3 kB / 339.2 MB, free: 7.863 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.1084, allocations: 254.1 kB / 339.5 MB, free: 7.602 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1084, allocations: 0 / 339.5 MB, free: 7.602 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005314/0.1089, allocations: 346.3 kB / 339.8 MB, free: 7.254 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.109, allocations: 4 kB / 339.8 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.109, allocations: 0 / 339.8 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.855e-05/0.1091, allocations: 28.91 kB / 339.8 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.1094, allocations: 95.89 kB / 339.9 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001055/0.1105, allocations: 1.386 MB / 341.3 MB, free: 5.598 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001907/0.1107, allocations: 16.03 kB / 341.3 MB, free: 5.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/0.1107, allocations: 12 kB / 341.3 MB, free: 5.57 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.0001893/0.1109, allocations: 165.8 kB / 341.5 MB, free: 5.398 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.143e-05/0.111, allocations: 43.53 kB / 341.5 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.26e-05/0.1111, allocations: 52.02 kB / 341.6 MB, free: 5.301 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1111, allocations: 4 kB / 341.6 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1111, allocations: 0 / 341.6 MB, free: 5.297 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005968/0.1117, allocations: 0.6725 MB / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.1128, allocations: 0.8448 MB / 343.1 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1128, allocations: 0 / 343.1 MB, free: 3.605 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003067/0.1131, allocations: 75.89 kB / 343.2 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.96e-06/0.1131, allocations: 4 kB / 343.2 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.1132, allocations: 12 kB / 343.2 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1132, allocations: 4 kB / 343.2 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1132, allocations: 3.938 kB / 343.2 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006994/0.1139, allocations: 0.5497 MB / 343.8 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.114, allocations: 128.8 kB / 343.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.43e-05/0.1141, allocations: 19.98 kB / 343.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.1143, allocations: 11.98 kB / 343.9 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.729e-05/0.1144, allocations: 35.84 kB / 344 MB, free: 2.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.332e-05/0.1144, allocations: 16 kB / 344 MB, free: 2.703 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.1146, allocations: 255 kB / 344.2 MB, free: 2.457 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1147, allocations: 3.938 kB / 344.2 MB, free: 2.453 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.115, allocations: 92 kB / 344.3 MB, free: 2.363 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.001843/0.1169, allocations: 1.398 MB / 345.7 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007329/0.1176, allocations: 398.4 kB / 346.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.1177, allocations: 0 / 346.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002116/0.1179, allocations: 136 kB / 346.2 MB, free: 416 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006082/0.1185, allocations: 101.5 kB / 346.3 MB, free: 316 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004485/0.123, allocations: 3.835 MB / 350.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.1234, allocations: 0.8118 MB / 351 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.1236, allocations: 51.19 kB / 351 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.1238, allocations: 131.4 kB / 351.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1238, allocations: 0 / 351.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.1486, allocations: 9.123 MB / 360.3 MB, free: 2.148 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000234/0.1488, allocations: 278.3 kB / 360.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.019/2.168, allocations: 0 / 360.6 MB, free: 1.766 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches