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.001512/0.001512, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.001677/0.001677, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.332/1.332, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000976/0.000976, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3066, allocations: 49.43 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.00407/0.3107, allocations: 3.017 MB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.3128, allocations: 1.258 MB / 405.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.313, allocations: 8 kB / 405.7 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004701/0.3135, allocations: 139.2 kB / 405.8 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004293/0.314, allocations: 178.8 kB / 406 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.3144, allocations: 167.5 kB / 406.1 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.3149, allocations: 438.1 kB / 406.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.3151, allocations: 103.5 kB / 406.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.3153, allocations: 175.3 kB / 406.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.3155, allocations: 191.2 kB / 407 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.3156, allocations: 32 kB / 407.1 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001385/0.3157, allocations: 55.98 kB / 407.1 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3159, allocations: 79.69 kB / 407.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.316, allocations: 187 kB / 407.4 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004634/0.3165, allocations: 451.6 kB / 407.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.3165, allocations: 0 / 407.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3165, allocations: 0 / 407.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.3165, allocations: 0 / 407.8 MB, free: 2.43 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.0009644/0.3175, allocations: 0.6673 MB / 408.5 MB, free: 1.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.3175, allocations: 8.031 kB / 408.5 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.746e-05/0.3176, allocations: 48.41 kB / 408.5 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.3181, allocations: 323.8 kB / 408.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.3181, allocations: 16.94 kB / 408.9 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.795e-05/0.3182, allocations: 36.12 kB / 408.9 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004619/0.3186, allocations: 291.1 kB / 409.2 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.3186, allocations: 3.906 kB / 409.2 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.3187, allocations: 12 kB / 409.2 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3187, allocations: 8 kB / 409.2 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.319, allocations: 178.1 kB / 409.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.3202, allocations: 0.8288 MB / 410.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000507/0.3208, allocations: 268 kB / 410.5 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001629/0.3209, allocations: 97.38 kB / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.321, allocations: 4.281 kB / 410.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.3213, allocations: 166.6 kB / 410.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 2.134e-06/0.3213, allocations: 0 / 410.7 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002204/0.3235, allocations: 1.317 MB / 412.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.527e-05/0.3236, allocations: 187.9 kB / 412.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003121/0.3239, allocations: 320.6 kB / 412.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.3239, allocations: 41.7 kB / 412.6 MB, free: 13.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.3241, allocations: 180.6 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.184e-05/0.3242, allocations: 141.9 kB / 412.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.946e-05/0.3243, allocations: 78.12 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.3244, allocations: 342.8 kB / 413.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001621/0.3246, allocations: 92.78 kB / 413.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002202/0.3248, allocations: 177.3 kB / 413.6 MB, free: 12.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.3251, allocations: 258.2 kB / 413.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3252, allocations: 4 kB / 413.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005045/0.3257, allocations: 350.3 kB / 414.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.3257, allocations: 8 kB / 414.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3257, allocations: 0 / 414.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.611e-05/0.3258, allocations: 20.86 kB / 414.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.3261, allocations: 91.83 kB / 414.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.3271, allocations: 1.394 MB / 415.7 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.3273, allocations: 12 kB / 415.7 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.3274, allocations: 15.98 kB / 415.7 MB, free: 9.918 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.000165/0.3275, allocations: 162.3 kB / 415.9 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.3276, allocations: 39.53 kB / 415.9 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.619e-05/0.3277, allocations: 43.88 kB / 416 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3277, allocations: 4 kB / 416 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3277, allocations: 3.938 kB / 416 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005708/0.3283, allocations: 0.6689 MB / 416.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.3293, allocations: 0.8336 MB / 417.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3293, allocations: 0 / 417.5 MB, free: 7.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.3296, allocations: 71.91 kB / 417.5 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.3296, allocations: 4.125 kB / 417.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.3297, allocations: 19.98 kB / 417.6 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.3297, allocations: 0 / 417.6 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.3297, allocations: 4 kB / 417.6 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/0.3304, allocations: 0.5423 MB / 418.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.3305, allocations: 128.8 kB / 418.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.3305, allocations: 23.98 kB / 418.3 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3308, allocations: 15.88 kB / 418.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.174e-05/0.3308, allocations: 27.95 kB / 418.3 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.3309, allocations: 19.98 kB / 418.3 MB, free: 7.086 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.3311, allocations: 235 kB / 418.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3311, allocations: 0 / 418.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.3315, allocations: 103.9 kB / 418.7 MB, free: 6.758 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.0009221/0.3324, allocations: 424 kB / 419.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006013/0.333, allocations: 362.5 kB / 419.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.333, allocations: 4 kB / 419.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.3332, allocations: 144 kB / 419.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.3338, allocations: 89.02 kB / 419.7 MB, free: 5.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.3354, allocations: 1.052 MB / 420.7 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.3357, allocations: 0.7963 MB / 421.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.687e-05/0.3358, allocations: 35.44 kB / 421.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3358, allocations: 0 / 421.5 MB, free: 3.945 MB / 334.1 MB Notification: Performance of Templates: time 0.007998/0.3438, allocations: 5.762 MB / 427.3 MB, free: 14.21 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/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) Reference file matches