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.001029/0.001029, allocations: 105.1 kB / 16.92 MB, free: 5.781 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.0009912/0.0009912, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 49.2 kB / 300.6 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08871/0.08973, allocations: 49.45 MB / 350.1 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004916/0.0947, allocations: 2.995 MB / 353 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002188/0.09694, allocations: 1.258 MB / 354.3 MB, free: 168 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002645/0.09723, allocations: 4 kB / 354.3 MB, free: 164 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004964/0.09777, allocations: 147.2 kB / 354.5 MB, free: 16 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000529/0.09831, allocations: 174.8 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004946/0.09882, allocations: 173.8 kB / 354.8 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000552/0.09938, allocations: 434.1 kB / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.0996, allocations: 104 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.09985, allocations: 171.3 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002548/0.1001, allocations: 179.2 kB / 355.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.587e-05/0.1002, allocations: 32 kB / 355.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001583/0.1004, allocations: 67.91 kB / 355.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.668e-05/0.1005, allocations: 71.7 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001877/0.1007, allocations: 187 kB / 356 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004716/0.1011, allocations: 442.7 kB / 356.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1012, allocations: 4 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1012, allocations: 0 / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1012, allocations: 0 / 356.4 MB, free: 14.01 MB / 302.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.001036/0.1022, allocations: 0.6713 MB / 357.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.1023, allocations: 12.03 kB / 357.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.1024, allocations: 44.38 kB / 357.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.1028, allocations: 319.8 kB / 357.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.1028, allocations: 16.94 kB / 357.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.244e-05/0.1029, allocations: 32.12 kB / 357.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004612/0.1033, allocations: 303 kB / 357.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.1034, allocations: 0 / 357.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.1034, allocations: 16 kB / 357.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.1034, allocations: 8 kB / 357.9 MB, free: 12.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.1037, allocations: 174.1 kB / 358 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.105, allocations: 0.8444 MB / 358.9 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005254/0.1056, allocations: 255.4 kB / 359.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.1058, allocations: 101.4 kB / 359.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.1058, allocations: 8.266 kB / 359.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003621/0.1062, allocations: 162.6 kB / 359.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 2.134e-06/0.1062, allocations: 0 / 359.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002313/0.1085, allocations: 1.304 MB / 360.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.1086, allocations: 187.9 kB / 360.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.109, allocations: 328.5 kB / 361.2 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/0.109, allocations: 33.7 kB / 361.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001377/0.1092, allocations: 180.6 kB / 361.4 MB, free: 8.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.1093, allocations: 141.9 kB / 361.5 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.1094, allocations: 74.08 kB / 361.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1096, allocations: 354.8 kB / 362 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.1097, allocations: 88.83 kB / 362 MB, free: 8.023 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.11, allocations: 177.3 kB / 362.2 MB, free: 7.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/0.1104, allocations: 254.2 kB / 362.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1104, allocations: 0 / 362.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005766/0.111, allocations: 354.2 kB / 362.8 MB, free: 7.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.111, allocations: 12.11 kB / 362.8 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.111, allocations: 4 kB / 362.8 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.15e-05/0.1111, allocations: 16.86 kB / 362.8 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.1115, allocations: 87.89 kB / 362.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/0.1125, allocations: 1.406 MB / 364.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001897/0.1127, allocations: 8 kB / 364.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.1127, allocations: 12 kB / 364.4 MB, free: 5.52 MB / 302.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.0001755/0.1129, allocations: 177.1 kB / 364.5 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.917e-05/0.113, allocations: 35.62 kB / 364.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.685e-05/0.1131, allocations: 47.88 kB / 364.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.1131, allocations: 4 kB / 364.6 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1131, allocations: 4 kB / 364.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006095/0.1137, allocations: 0.665 MB / 365.3 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001124/0.1148, allocations: 0.8408 MB / 366.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1148, allocations: 0 / 366.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.1152, allocations: 79.89 kB / 366.2 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1152, allocations: 3.938 kB / 366.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.1152, allocations: 12.11 kB / 366.2 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.1152, allocations: 8 kB / 366.2 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1152, allocations: 4 kB / 366.2 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007039/0.1159, allocations: 0.5449 MB / 366.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.1161, allocations: 132.8 kB / 366.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.1161, allocations: 12 kB / 366.9 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.1164, allocations: 19.89 kB / 366.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.326e-05/0.1164, allocations: 23.97 kB / 367 MB, free: 2.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.1165, allocations: 16 kB / 367 MB, free: 2.668 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.1167, allocations: 235 kB / 367.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1167, allocations: 0 / 367.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003829/0.1171, allocations: 96.56 kB / 367.3 MB, free: 2.344 MB / 302.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.0009468/0.118, allocations: 432.8 kB / 367.7 MB, free: 2.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006966/0.1188, allocations: 378.4 kB / 368.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.1188, allocations: 0 / 368.1 MB, free: 1.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.119, allocations: 136.1 kB / 368.2 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.1195, allocations: 92.06 kB / 368.3 MB, free: 1.473 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.1211, allocations: 1.032 MB / 369.3 MB, free: 412 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.147/0.2681, allocations: 0.7996 MB / 370.1 MB, free: 24.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.2684, allocations: 47.75 kB / 370.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-05/0.2685, allocations: 36.44 kB / 370.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2685, allocations: 0 / 370.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of Templates: time 0.01113/0.2796, allocations: 5.233 MB / 375.5 MB, free: 24.66 MB / 302.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