Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008286/0.0008286, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008365/0.0008365, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8691/0.8691, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.966e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.003336/0.003356, allocations: 2.821 MB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.00511, allocations: 1.359 MB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.005247, allocations: 7.938 kB / 328.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000389/0.005636, allocations: 135.1 kB / 328.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003954/0.006032, allocations: 230.6 kB / 329.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.006243, allocations: 139.5 kB / 329.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.006617, allocations: 466 kB / 329.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.00676, allocations: 72.17 kB / 329.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.006961, allocations: 259.3 kB / 330 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001632/0.007124, allocations: 143.6 kB / 330.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.459e-05/0.007158, allocations: 32 kB / 330.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.042e-05/0.007249, allocations: 59.91 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.158e-05/0.00732, allocations: 83.62 kB / 330.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.286e-05/0.007413, allocations: 127.7 kB / 330.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003609/0.007774, allocations: 450.5 kB / 330.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.00778, allocations: 7.984 kB / 330.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.007781, allocations: 0 / 330.9 MB, free: 9.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.007786, allocations: 0 / 330.9 MB, free: 9.57 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0006925/0.008479, allocations: 0.6187 MB / 331.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.008516, allocations: 12.03 kB / 331.5 MB, free: 8.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.555e-05/0.008601, allocations: 71.28 kB / 331.6 MB, free: 8.828 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.008662, allocations: 48.66 kB / 331.6 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.008962, allocations: 257.6 kB / 331.9 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.899e-05/0.008981, allocations: 21.03 kB / 331.9 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.308e-05/0.009014, allocations: 36.33 kB / 332 MB, free: 8.449 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.009405, allocations: 0.5313 MB / 332.5 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.00942, allocations: 4 kB / 332.5 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.009442, allocations: 12 kB / 332.5 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.009449, allocations: 4 kB / 332.5 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002179/0.009667, allocations: 190.5 kB / 332.7 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008526/0.01052, allocations: 0.7639 MB / 333.5 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.0109, allocations: 246.4 kB / 333.7 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.011, allocations: 90.23 kB / 333.8 MB, free: 6.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.01102, allocations: 4.281 kB / 333.8 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.01126, allocations: 264.6 kB / 334 MB, free: 6.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 2.114e-06/0.01127, allocations: 3.938 kB / 334 MB, free: 6.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001515/0.01278, allocations: 1.119 MB / 335.2 MB, free: 4.996 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/0.01285, allocations: 191.9 kB / 335.4 MB, free: 4.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.01309, allocations: 340.5 kB / 335.7 MB, free: 4.422 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.01311, allocations: 33.69 kB / 335.7 MB, free: 4.383 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.325e-05/0.0132, allocations: 192.7 kB / 335.9 MB, free: 4.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.888e-05/0.01327, allocations: 142.8 kB / 336 MB, free: 4.051 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.576e-05/0.01335, allocations: 82.14 kB / 336.1 MB, free: 3.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.481e-05/0.01344, allocations: 350.8 kB / 336.5 MB, free: 3.613 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.01356, allocations: 96.89 kB / 336.6 MB, free: 3.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.01375, allocations: 306.4 kB / 336.9 MB, free: 3.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.014, allocations: 254.1 kB / 337.1 MB, free: 2.891 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01401, allocations: 0 / 337.1 MB, free: 2.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0003632/0.01437, allocations: 358.5 kB / 337.5 MB, free: 2.531 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.01438, allocations: 7.938 kB / 337.5 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.01439, allocations: 4 kB / 337.5 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.489e-05/0.01448, allocations: 16.86 kB / 337.5 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.01467, allocations: 91.89 kB / 337.6 MB, free: 2.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007973/0.01547, allocations: 1.287 MB / 338.9 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.01558, allocations: 24.02 kB / 338.9 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.01559, allocations: 12 kB / 338.9 MB, free: 0.9688 MB / 298.7 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.0001335/0.01573, allocations: 165.7 kB / 339.1 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.382e-05/0.01576, allocations: 43.72 kB / 339.1 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000372/0.01613, allocations: 338.6 kB / 339.4 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.01614, allocations: 7.938 kB / 339.4 MB, free: 416 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.01614, allocations: 3.984 kB / 339.4 MB, free: 412 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000408/0.01655, allocations: 0.6644 MB / 340.1 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007462/0.01729, allocations: 0.7897 MB / 340.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.0173, allocations: 4 kB / 340.9 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.01747, allocations: 75.91 kB / 341 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.01748, allocations: 4 kB / 341 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.01749, allocations: 11.98 kB / 341 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.0175, allocations: 0 / 341 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.0175, allocations: 7.938 kB / 341 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004653/0.01797, allocations: 0.5588 MB / 341.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.173e-05/0.01805, allocations: 59.78 kB / 341.6 MB, free: 14.03 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.01807, allocations: 12 kB / 341.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.01818, allocations: 15.98 kB / 341.6 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.361e-05/0.01823, allocations: 27.95 kB / 341.7 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.981e-05/0.01826, allocations: 19.88 kB / 341.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001592/0.01842, allocations: 247 kB / 341.9 MB, free: 13.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01842, allocations: 3.938 kB / 341.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.01868, allocations: 92 kB / 342 MB, free: 13.62 MB / 314.7 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 (41): * Single equations (assignments): 39 * 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.001343/0.02002, allocations: 1.447 MB / 343.5 MB, free: 12.32 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004365/0.02046, allocations: 362.6 kB / 343.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.02046, allocations: 7.938 kB / 343.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.0206, allocations: 132 kB / 344 MB, free: 11.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003532/0.02095, allocations: 93.11 kB / 344.1 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.02393, allocations: 3.54 MB / 347.6 MB, free: 8.051 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001401/0.02407, allocations: 212.2 kB / 347.8 MB, free: 7.824 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.0242, allocations: 43.27 kB / 347.8 MB, free: 7.777 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.02433, allocations: 132.5 kB / 348 MB, free: 7.648 MB / 314.7 MB Notification: Performance of SimCode: time 9.61e-07/0.02433, allocations: 0 / 348 MB, free: 7.648 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02362/0.04795, allocations: 10.59 MB / 358.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/7.496, allocations: 7.578 kB / 358.6 MB, free: 13.2 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.115852191112936]