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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|cylinder1.H|cylinder1.m|cylinder2.H|springDamper.s_rel|springDamper.v_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001513/0.001513, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001705/0.001705, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008926/0.0008927, allocations: 47.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2411, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004243/0.2454, allocations: 3.006 MB / 403.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2474, allocations: 1.254 MB / 405 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.2475, allocations: 11.94 kB / 405 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004608/0.248, allocations: 143.2 kB / 405.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004162/0.2484, allocations: 170.9 kB / 405.3 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004239/0.2489, allocations: 186.1 kB / 405.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004538/0.2493, allocations: 434.1 kB / 405.9 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.2496, allocations: 99.45 kB / 406 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002074/0.2498, allocations: 183.3 kB / 406.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002418/0.25, allocations: 183.2 kB / 406.3 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.795e-05/0.2501, allocations: 28 kB / 406.4 MB, free: 3.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001224/0.2502, allocations: 63.92 kB / 406.4 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.142e-05/0.2503, allocations: 83.67 kB / 406.5 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.2505, allocations: 183 kB / 406.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.2509, allocations: 443.5 kB / 407.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.2509, allocations: 0 / 407.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2509, allocations: 0 / 407.1 MB, free: 2.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2509, allocations: 0 / 407.1 MB, free: 2.406 MB / 318.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.0009181/0.2519, allocations: 0.679 MB / 407.8 MB, free: 1.676 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.2519, allocations: 8.031 kB / 407.8 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.336e-05/0.252, allocations: 40.47 kB / 407.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003934/0.2524, allocations: 327.8 kB / 408.2 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.2524, allocations: 16.94 kB / 408.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.2525, allocations: 32.12 kB / 408.2 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.253, allocations: 295.1 kB / 408.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.253, allocations: 3.906 kB / 408.5 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.253, allocations: 12 kB / 408.5 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.2531, allocations: 4 kB / 408.5 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003462/0.2534, allocations: 182.1 kB / 408.7 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.2547, allocations: 0.8329 MB / 409.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/0.2552, allocations: 268 kB / 409.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.2554, allocations: 97.39 kB / 409.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.2554, allocations: 4.281 kB / 409.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.2557, allocations: 166.6 kB / 410.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.674e-06/0.2557, allocations: 0 / 410.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002241/0.258, allocations: 1.314 MB / 411.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.2581, allocations: 183.9 kB / 411.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.2584, allocations: 332.5 kB / 411.9 MB, free: 13.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.2585, allocations: 37.7 kB / 411.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001194/0.2586, allocations: 180.6 kB / 412.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.2587, allocations: 141.9 kB / 412.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.2588, allocations: 74.12 kB / 412.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.259, allocations: 350.8 kB / 412.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.2591, allocations: 88.77 kB / 412.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002455/0.2594, allocations: 185.3 kB / 412.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.2598, allocations: 246.2 kB / 413.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.2598, allocations: 0 / 413.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005462/0.2604, allocations: 354.2 kB / 413.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2604, allocations: 6.344 kB / 413.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2604, allocations: 4 kB / 413.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.406e-05/0.2605, allocations: 20.84 kB / 413.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.2608, allocations: 88.03 kB / 413.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.2619, allocations: 1.398 MB / 415 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.2621, allocations: 15.98 kB / 415 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.602e-05/0.2621, allocations: 16 kB / 415.1 MB, free: 9.883 MB / 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.0001672/0.2623, allocations: 158.2 kB / 415.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.2623, allocations: 43.52 kB / 415.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.38e-05/0.2624, allocations: 47.88 kB / 415.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.2624, allocations: 4 kB / 415.3 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.2625, allocations: 3.938 kB / 415.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006063/0.2631, allocations: 0.6612 MB / 416 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/0.2642, allocations: 0.8335 MB / 416.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.2642, allocations: 4 kB / 416.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003228/0.2645, allocations: 75.89 kB / 416.9 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.2645, allocations: 8.109 kB / 416.9 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.442e-05/0.2646, allocations: 12 kB / 416.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.2646, allocations: 4 kB / 416.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2646, allocations: 0 / 416.9 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007399/0.2653, allocations: 0.5423 MB / 417.4 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.2655, allocations: 140.7 kB / 417.6 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.19e-05/0.2655, allocations: 8 kB / 417.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.2657, allocations: 23.86 kB / 417.6 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.307e-05/0.2658, allocations: 23.97 kB / 417.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.2658, allocations: 16 kB / 417.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002267/0.2661, allocations: 235.1 kB / 417.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2661, allocations: 4 kB / 417.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.2665, allocations: 91.98 kB / 418 MB, free: 6.734 MB / 334.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.0009039/0.2674, allocations: 435.9 kB / 418.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006079/0.268, allocations: 366.4 kB / 418.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.268, allocations: 0 / 418.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002206/0.2682, allocations: 139.9 kB / 418.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005261/0.2688, allocations: 87.62 kB / 419 MB, free: 5.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.2703, allocations: 1.023 MB / 420 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003578/0.2707, allocations: 0.7963 MB / 420.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001537/0.2709, allocations: 51.23 kB / 420.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.927e-05/0.2709, allocations: 35.44 kB / 420.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2709, allocations: 0 / 420.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of Templates: time 0.009724/0.2807, allocations: 5.318 MB / 426.2 MB, free: 14.66 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.makefile (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 & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestCylinder/TestCylinder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches