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.001438/0.001438, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001607/0.001607, allocations: 214 kB / 24.52 MB, free: 3.914 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.343/1.343, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.001472/0.001472, allocations: 47.92 kB / 378.5 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2261, allocations: 53.37 MB / 431.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004456/0.2306, allocations: 2.822 MB / 434.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002352/0.2329, allocations: 1.332 MB / 436 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002197/0.2331, allocations: 11.94 kB / 436 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004669/0.2336, allocations: 143.1 kB / 436.2 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005847/0.2342, allocations: 210.8 kB / 436.4 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.2345, allocations: 143.6 kB / 436.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005845/0.2351, allocations: 442.1 kB / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2353, allocations: 83.12 kB / 437 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.2356, allocations: 179.3 kB / 437.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002973/0.2359, allocations: 195.2 kB / 437.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.242e-05/0.2359, allocations: 28 kB / 437.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.2361, allocations: 67.86 kB / 437.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2362, allocations: 75.75 kB / 437.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.2364, allocations: 159.2 kB / 437.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000531/0.2369, allocations: 458 kB / 438.2 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2369, allocations: 0 / 438.2 MB, free: 312 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2369, allocations: 0 / 438.2 MB, free: 312 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.2369, allocations: 0 / 438.2 MB, free: 312 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.00104/0.238, allocations: 0.6227 MB / 438.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.238, allocations: 12.03 kB / 438.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.904e-05/0.238, allocations: 12.78 kB / 438.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.764e-05/0.2381, allocations: 79.31 kB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.947e-05/0.2382, allocations: 52.61 kB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004298/0.2387, allocations: 262.4 kB / 439.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.872e-05/0.2387, allocations: 24.78 kB / 439.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.643e-05/0.2387, allocations: 35.95 kB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006622/0.2394, allocations: 0.5427 MB / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/0.2394, allocations: 4 kB / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.106e-05/0.2395, allocations: 12 kB / 439.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2395, allocations: 8 kB / 439.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003701/0.2398, allocations: 206.4 kB / 440 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.2413, allocations: 0.8282 MB / 440.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000558/0.2418, allocations: 264.9 kB / 441.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.242, allocations: 128.7 kB / 441.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.847e-05/0.2421, allocations: 4 kB / 441.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003988/0.2425, allocations: 290.7 kB / 441.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.964e-06/0.2425, allocations: 0 / 441.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=60): time 0.003732/0.2462, allocations: 1.726 MB / 443.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.2463, allocations: 188.4 kB / 443.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/0.2467, allocations: 352.4 kB / 443.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.029e-05/0.2467, allocations: 33.7 kB / 443.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.2468, allocations: 193 kB / 444 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.247, allocations: 218.2 kB / 444.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001371/0.2472, allocations: 98.34 kB / 444.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2473, allocations: 350.8 kB / 444.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.2475, allocations: 121.2 kB / 444.8 MB, free: 9.289 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/0.2479, allocations: 360.3 kB / 445.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005209/0.2484, allocations: 340.7 kB / 445.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2484, allocations: 4 kB / 445.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007039/0.2491, allocations: 453.8 kB / 445.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2492, allocations: 11.98 kB / 445.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2492, allocations: 0 / 445.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.237e-05/0.2493, allocations: 20.86 kB / 445.9 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004415/0.2497, allocations: 127.8 kB / 446 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.2508, allocations: 1.283 MB / 447.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.251, allocations: 15.98 kB / 447.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.251, allocations: 24 kB / 447.4 MB, free: 6.48 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.0002008/0.2512, allocations: 178 kB / 447.5 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.657e-05/0.2513, allocations: 55.61 kB / 447.6 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007778/0.2521, allocations: 463.5 kB / 448.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.2521, allocations: 12.12 kB / 448.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-06/0.2521, allocations: 0 / 448.1 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007774/0.2529, allocations: 0.7625 MB / 448.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.2544, allocations: 1.034 MB / 449.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.2544, allocations: 4.188 kB / 449.9 MB, free: 3.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.2549, allocations: 119.8 kB / 450 MB, free: 3.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.933e-06/0.2549, allocations: 4 kB / 450 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/0.2549, allocations: 15.98 kB / 450 MB, free: 3.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.2549, allocations: 4 kB / 450 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2549, allocations: 3.938 kB / 450 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.256, allocations: 0.7405 MB / 450.7 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.2561, allocations: 75.72 kB / 450.8 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.052e-05/0.2562, allocations: 12 kB / 450.8 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.2564, allocations: 27.94 kB / 450.9 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.2565, allocations: 40.38 kB / 450.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.2565, allocations: 23.98 kB / 450.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002629/0.2568, allocations: 247 kB / 451.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2568, allocations: 0 / 451.2 MB, free: 2.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004253/0.2572, allocations: 123.9 kB / 451.3 MB, free: 2.332 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 (62): * Single equations (assignments): 60 * 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.002777/0.26, allocations: 1.628 MB / 452.9 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007764/0.2608, allocations: 461.9 kB / 453.4 MB, free: 404 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.2608, allocations: 0 / 453.4 MB, free: 404 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003025/0.2611, allocations: 190.7 kB / 453.6 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.2617, allocations: 109.5 kB / 453.7 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005224/0.2669, allocations: 4.091 MB / 457.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/0.2671, allocations: 221.9 kB / 458 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002027/0.2673, allocations: 59.42 kB / 458 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.2675, allocations: 151.4 kB / 458.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2675, allocations: 0 / 458.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.3051, allocations: 11.46 MB / 469.6 MB, free: 148 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/12.9, allocations: 6.328 kB / 469.6 MB, free: 148 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.329666816047393]