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.001761/0.001761, allocations: 112.2 kB / 20.43 MB, free: 1.457 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.001452/0.001452, allocations: 180.5 kB / 23.72 MB, free: 4.699 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.346/1.346, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 47.92 kB / 370.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2372, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004521/0.2417, allocations: 3.044 MB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.244, allocations: 1.282 MB / 426.9 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002238/0.2442, allocations: 7.938 kB / 427 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005037/0.2447, allocations: 143.2 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005203/0.2452, allocations: 182.8 kB / 427.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005035/0.2457, allocations: 178.7 kB / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006175/0.2463, allocations: 426.1 kB / 427.9 MB, free: 9.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.2465, allocations: 67.95 kB / 427.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003232/0.2468, allocations: 191.3 kB / 428.1 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.2472, allocations: 187.2 kB / 428.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.572e-05/0.2472, allocations: 32 kB / 428.3 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001598/0.2474, allocations: 59.92 kB / 428.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2475, allocations: 83.69 kB / 428.5 MB, free: 8.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002185/0.2477, allocations: 183 kB / 428.6 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005897/0.2483, allocations: 454.5 kB / 429.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2483, allocations: 0 / 429.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2483, allocations: 0 / 429.1 MB, free: 8.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.2483, allocations: 0 / 429.1 MB, free: 8.109 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.001115/0.2495, allocations: 0.6188 MB / 429.7 MB, free: 7.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.2495, allocations: 8.031 kB / 429.7 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000111/0.2496, allocations: 71.33 kB / 429.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.588e-05/0.2497, allocations: 48.66 kB / 429.8 MB, free: 7.324 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005064/0.2502, allocations: 267 kB / 430.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.2502, allocations: 17.03 kB / 430.1 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.447e-05/0.2503, allocations: 39.86 kB / 430.2 MB, free: 6.988 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.2508, allocations: 304.5 kB / 430.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.2508, allocations: 7.984 kB / 430.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.2509, allocations: 12 kB / 430.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.2509, allocations: 8 kB / 430.5 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.2512, allocations: 182.5 kB / 430.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.2527, allocations: 0.8142 MB / 431.5 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005431/0.2532, allocations: 247.4 kB / 431.7 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001804/0.2534, allocations: 94.22 kB / 431.8 MB, free: 5.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.422e-05/0.2534, allocations: 4.281 kB / 431.8 MB, free: 5.238 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003246/0.2537, allocations: 173.6 kB / 432 MB, free: 5.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 2.094e-06/0.2537, allocations: 0 / 432 MB, free: 5.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002348/0.2561, allocations: 1.091 MB / 433.1 MB, free: 3.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.2562, allocations: 187.9 kB / 433.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.2566, allocations: 324.5 kB / 433.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.2567, allocations: 37.64 kB / 433.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.2568, allocations: 192.7 kB / 433.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.257, allocations: 146.7 kB / 433.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.2571, allocations: 70.14 kB / 434 MB, free: 2.898 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.2573, allocations: 350.7 kB / 434.3 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.2575, allocations: 96.83 kB / 434.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.2577, allocations: 173.3 kB / 434.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.2581, allocations: 254.2 kB / 434.9 MB, free: 1.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.2581, allocations: 4.062 kB / 434.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006189/0.2588, allocations: 358.5 kB / 435.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2588, allocations: 4 kB / 435.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2588, allocations: 0 / 435.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.464e-05/0.2589, allocations: 28.92 kB / 435.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.2592, allocations: 87.89 kB / 435.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001208/0.2604, allocations: 1.287 MB / 436.6 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.2606, allocations: 16.03 kB / 436.6 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.2607, allocations: 8 kB / 436.6 MB, free: 80 kB / 334.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.0002199/0.2609, allocations: 173 kB / 436.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-05/0.2609, allocations: 43.7 kB / 436.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005948/0.2615, allocations: 330.3 kB / 437.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.2615, allocations: 4 kB / 437.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-06/0.2615, allocations: 4 kB / 437.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007017/0.2622, allocations: 0.6575 MB / 437.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.2635, allocations: 0.8257 MB / 438.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2635, allocations: 0 / 438.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003199/0.2638, allocations: 75.91 kB / 438.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.2638, allocations: 4 kB / 438.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.2638, allocations: 8 kB / 438.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.2638, allocations: 7.922 kB / 438.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2639, allocations: 7.938 kB / 438.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.2646, allocations: 0.5429 MB / 439.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.2648, allocations: 55.8 kB / 439.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.2648, allocations: 16.12 kB / 439.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002196/0.265, allocations: 15.98 kB / 439.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.825e-05/0.2651, allocations: 35.83 kB / 439.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.2651, allocations: 12 kB / 439.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002549/0.2654, allocations: 239 kB / 439.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2654, allocations: 0 / 439.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004079/0.2658, allocations: 92 kB / 439.8 MB, free: 12.74 MB / 350.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.002549/0.2683, allocations: 1.406 MB / 441.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006512/0.269, allocations: 366.8 kB / 441.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.269, allocations: 8.062 kB / 441.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002747/0.2693, allocations: 119.8 kB / 441.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.2698, allocations: 104.9 kB / 441.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004731/0.2746, allocations: 3.639 MB / 445.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004357/0.275, allocations: 0.804 MB / 446.2 MB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000163/0.2752, allocations: 43.27 kB / 446.2 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.2753, allocations: 135.4 kB / 446.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2753, allocations: 0 / 446.4 MB, free: 6.078 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04166/0.317, allocations: 9.627 MB / 456 MB, free: 12.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/12.95, allocations: 0 / 456 MB, free: 12.58 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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.290192246204242]