Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 108.6 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001518/0.001518, allocations: 195.9 kB / 24.51 MB, free: 4.004 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 51.92 kB / 371.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2213, allocations: 52.18 MB / 423.4 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004419/0.2258, allocations: 3.04 MB / 426.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.2279, allocations: 1.282 MB / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2281, allocations: 7.938 kB / 427.7 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004493/0.2285, allocations: 147.1 kB / 427.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004101/0.2289, allocations: 178.9 kB / 428 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004082/0.2293, allocations: 187 kB / 428.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004861/0.2298, allocations: 434.1 kB / 428.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.23, allocations: 63.95 kB / 428.7 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.2302, allocations: 183.3 kB / 428.9 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002609/0.2305, allocations: 191.2 kB / 429.1 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.752e-05/0.2305, allocations: 28 kB / 429.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.2306, allocations: 59.97 kB / 429.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-05/0.2307, allocations: 83.64 kB / 429.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.2309, allocations: 187 kB / 429.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000523/0.2314, allocations: 454.9 kB / 429.9 MB, free: 8.164 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2314, allocations: 3.938 kB / 429.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.2314, allocations: 0 / 429.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2314, allocations: 0 / 429.9 MB, free: 8.16 MB / 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.0009824/0.2324, allocations: 0.6111 MB / 430.5 MB, free: 7.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.2324, allocations: 12.03 kB / 430.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.862e-05/0.2325, allocations: 12.8 kB / 430.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.148e-05/0.2326, allocations: 71.36 kB / 430.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.2327, allocations: 56.61 kB / 430.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.2331, allocations: 263 kB / 430.9 MB, free: 7.082 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.031e-05/0.2332, allocations: 24.78 kB / 430.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.347e-05/0.2332, allocations: 39.95 kB / 431 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.2337, allocations: 324.5 kB / 431.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.2338, allocations: 3.984 kB / 431.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.126e-05/0.2338, allocations: 12 kB / 431.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2338, allocations: 8 kB / 431.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003486/0.2341, allocations: 194.5 kB / 431.5 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.2355, allocations: 0.875 MB / 432.4 MB, free: 5.535 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005181/0.236, allocations: 276.2 kB / 432.6 MB, free: 5.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.2362, allocations: 124.8 kB / 432.8 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.2362, allocations: 4 kB / 432.8 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003268/0.2366, allocations: 191.8 kB / 433 MB, free: 4.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.603e-06/0.2366, allocations: 0 / 433 MB, free: 4.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=60): time 0.003537/0.2401, allocations: 1.711 MB / 434.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.2402, allocations: 188.4 kB / 434.8 MB, free: 2.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.2406, allocations: 324.5 kB / 435.2 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.619e-05/0.2406, allocations: 41.7 kB / 435.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.2408, allocations: 189 kB / 435.4 MB, free: 2.348 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.2409, allocations: 222.1 kB / 435.6 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.2411, allocations: 90.34 kB / 435.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2412, allocations: 354.8 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.2415, allocations: 125.2 kB / 436.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003059/0.2418, allocations: 223.7 kB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/0.2423, allocations: 340.7 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2423, allocations: 4 kB / 436.7 MB, free: 0.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007283/0.243, allocations: 453.8 kB / 437.2 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.243, allocations: 4 kB / 437.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.243, allocations: 7.984 kB / 437.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.46e-05/0.2431, allocations: 20.84 kB / 437.2 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004413/0.2436, allocations: 127.8 kB / 437.3 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.2447, allocations: 1.291 MB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.2449, allocations: 19.94 kB / 438.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.2449, allocations: 20 kB / 438.6 MB, free: 14.89 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.0002068/0.2451, allocations: 169.7 kB / 438.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/0.2452, allocations: 55.64 kB / 438.9 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007579/0.246, allocations: 451.4 kB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.246, allocations: 8.062 kB / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.246, allocations: 0 / 439.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007849/0.2468, allocations: 0.7625 MB / 440.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001613/0.2484, allocations: 1.073 MB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.2484, allocations: 8 kB / 441.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004298/0.2488, allocations: 115.8 kB / 441.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.8e-06/0.2488, allocations: 4 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.344e-05/0.2489, allocations: 19.98 kB / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.904e-06/0.2489, allocations: 4 kB / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2489, allocations: 0 / 441.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.2499, allocations: 0.7251 MB / 442 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.25, allocations: 71.73 kB / 442.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.2501, allocations: 16 kB / 442.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.2503, allocations: 19.98 kB / 442.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.2504, allocations: 40.42 kB / 442.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.38e-05/0.2504, allocations: 20 kB / 442.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002423/0.2507, allocations: 242.9 kB / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2507, allocations: 0 / 442.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004165/0.2511, allocations: 123.9 kB / 442.5 MB, free: 10.77 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.002726/0.2538, allocations: 1.591 MB / 444.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007696/0.2546, allocations: 469.8 kB / 444.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.2546, allocations: 4 kB / 444.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.2549, allocations: 179.1 kB / 444.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005746/0.2554, allocations: 99.05 kB / 444.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.2607, allocations: 4.059 MB / 448.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004298/0.2611, allocations: 0.8251 MB / 449.8 MB, free: 3.492 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.2613, allocations: 55.44 kB / 449.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.2615, allocations: 151.4 kB / 450 MB, free: 3.289 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2615, allocations: 8 kB / 450 MB, free: 3.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03976/0.3013, allocations: 10.95 MB / 460.9 MB, free: 8.473 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.78, allocations: 14.61 kB / 460.9 MB, free: 8.461 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat. Warning: Get data of variable cylinder1.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.103067359013949]