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.001277/0.001277, allocations: 112.2 kB / 21.22 MB, free: 0.75 MB / 14.72 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.001375/0.001375, allocations: 206.1 kB / 24.52 MB, free: 4.156 MB / 14.72 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 1.356/1.356, allocations: 230.6 MB / 258.3 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.2112, allocations: 53.36 MB / 431.9 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004126/0.2153, allocations: 3.058 MB / 435 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.2177, allocations: 1.434 MB / 436.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.2179, allocations: 7.938 kB / 436.4 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004859/0.2184, allocations: 143.2 kB / 436.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005346/0.2189, allocations: 218.7 kB / 436.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.2193, allocations: 143.6 kB / 436.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005407/0.2198, allocations: 438.1 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001771/0.22, allocations: 77.02 kB / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.2202, allocations: 191.3 kB / 437.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000258/0.2205, allocations: 191.2 kB / 437.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/0.2205, allocations: 28 kB / 437.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.2206, allocations: 63.92 kB / 437.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.691e-05/0.2207, allocations: 83.67 kB / 438 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2209, allocations: 183 kB / 438.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005073/0.2214, allocations: 462.4 kB / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2214, allocations: 0 / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2214, allocations: 0 / 438.6 MB, free: 180 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2214, allocations: 0 / 438.6 MB, free: 180 kB / 334.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.0009724/0.2224, allocations: 0.615 MB / 439.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.2224, allocations: 8.031 kB / 439.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.573e-05/0.2225, allocations: 24.7 kB / 439.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.377e-05/0.2226, allocations: 79.31 kB / 439.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.008e-05/0.2227, allocations: 52.61 kB / 439.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004472/0.2231, allocations: 270.9 kB / 439.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.2231, allocations: 24.78 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/0.2232, allocations: 35.95 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.2237, allocations: 324.5 kB / 440 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2237, allocations: 0 / 440 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.966e-05/0.2238, allocations: 12 kB / 440 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.2238, allocations: 8 kB / 440 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003535/0.2241, allocations: 202.4 kB / 440.2 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.2255, allocations: 0.8827 MB / 441.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005467/0.2261, allocations: 264.3 kB / 441.4 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.2263, allocations: 124.7 kB / 441.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.2263, allocations: 8 kB / 441.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003285/0.2266, allocations: 187.9 kB / 441.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.794e-06/0.2266, allocations: 0 / 441.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=60): time 0.003561/0.2302, allocations: 1.703 MB / 443.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.2303, allocations: 192.4 kB / 443.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003535/0.2307, allocations: 340.4 kB / 443.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.2307, allocations: 41.7 kB / 443.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.2308, allocations: 185.1 kB / 444.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.231, allocations: 218.1 kB / 444.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.2311, allocations: 102.3 kB / 444.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.2313, allocations: 350.8 kB / 444.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.2315, allocations: 121.3 kB / 444.9 MB, free: 9.539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002972/0.2318, allocations: 223.7 kB / 445.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.2323, allocations: 340.7 kB / 445.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2323, allocations: 0 / 445.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006949/0.233, allocations: 466 kB / 445.9 MB, free: 8.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.233, allocations: 4 kB / 445.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.233, allocations: 3.984 kB / 445.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.568e-05/0.2331, allocations: 24.8 kB / 445.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004454/0.2336, allocations: 127.8 kB / 446.1 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.2347, allocations: 1.283 MB / 447.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.2349, allocations: 16.03 kB / 447.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.2349, allocations: 16 kB / 447.4 MB, free: 6.895 MB / 350.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 (69): * Single equations (assignments): 68 * 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.0002277/0.2351, allocations: 196.8 kB / 447.6 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.553e-05/0.2352, allocations: 55.61 kB / 447.6 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007738/0.236, allocations: 455.5 kB / 448.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.236, allocations: 8 kB / 448.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.236, allocations: 0 / 448.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007801/0.2368, allocations: 0.7586 MB / 448.8 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001653/0.2384, allocations: 1.069 MB / 449.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.2384, allocations: 4 kB / 449.9 MB, free: 4.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/0.2389, allocations: 120 kB / 450 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2389, allocations: 4 kB / 450 MB, free: 4.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.2389, allocations: 16 kB / 450 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.2389, allocations: 4 kB / 450 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2389, allocations: 0 / 450 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001042/0.24, allocations: 0.7327 MB / 450.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001458/0.2401, allocations: 71.73 kB / 450.8 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.2402, allocations: 16.12 kB / 450.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.2404, allocations: 23.98 kB / 450.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.072e-05/0.2405, allocations: 40.38 kB / 450.9 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.2405, allocations: 23.98 kB / 450.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002598/0.2408, allocations: 243 kB / 451.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2408, allocations: 0 / 451.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004447/0.2412, allocations: 123.9 kB / 451.3 MB, free: 2.727 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 5 ($outputAlias_s1,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 (61): * Single equations (assignments): 59 * 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.002711/0.2439, allocations: 1.585 MB / 452.9 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008346/0.2448, allocations: 465.9 kB / 453.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2448, allocations: 0 / 453.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.2451, allocations: 182.7 kB / 453.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.2457, allocations: 113.7 kB / 453.6 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005277/0.2509, allocations: 4.086 MB / 457.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004299/0.2514, allocations: 0.829 MB / 458.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002098/0.2516, allocations: 59.44 kB / 458.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.2518, allocations: 159.4 kB / 458.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2518, allocations: 0 / 458.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03546/0.2873, allocations: 11.04 MB / 469.8 MB, free: 320 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.04, allocations: 11.16 kB / 469.8 MB, free: 312 kB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/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] "Error: Could not read variable cylinder1.m in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat. Warning: Get data of variable cylinder1.m from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.463586372032296]