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.001085/0.001085, allocations: 103.5 kB / 16.62 MB, free: 6.812 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.00111/0.001111, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.289/1.289, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009421/0.0009421, allocations: 51.83 kB / 300.1 MB, free: 5.984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08404/0.085, allocations: 49.44 MB / 349.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.004018/0.08905, allocations: 3.048 MB / 352.6 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.09103, allocations: 1.243 MB / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002161/0.09127, allocations: 4 kB / 353.9 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004831/0.09176, allocations: 135.4 kB / 354 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005003/0.09232, allocations: 159.2 kB / 354.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.09278, allocations: 150.4 kB / 354.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005295/0.09332, allocations: 426.2 kB / 354.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.09352, allocations: 103.5 kB / 354.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.09377, allocations: 179.3 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.09404, allocations: 187.2 kB / 355.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.847e-05/0.09411, allocations: 32 kB / 355.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.09425, allocations: 51.98 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.974e-05/0.09436, allocations: 83.69 kB / 355.3 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.09455, allocations: 194.9 kB / 355.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004639/0.09502, allocations: 438.8 kB / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09503, allocations: 0 / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09504, allocations: 0 / 355.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.09506, allocations: 0 / 355.9 MB, free: 14.12 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.001045/0.09611, allocations: 0.6713 MB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.09616, allocations: 8.031 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.88e-05/0.09626, allocations: 48.38 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000368/0.09663, allocations: 319.8 kB / 357 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.09666, allocations: 20.94 kB / 357 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.09672, allocations: 28.12 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004942/0.09722, allocations: 299.1 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.09725, allocations: 0 / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.09728, allocations: 12 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.0973, allocations: 4 kB / 357.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.09762, allocations: 178.1 kB / 357.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001257/0.09888, allocations: 0.8366 MB / 358.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.09941, allocations: 263.4 kB / 358.6 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.09959, allocations: 101.4 kB / 358.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.09963, allocations: 8.266 kB / 358.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002988/0.09993, allocations: 166.6 kB / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.713e-06/0.09995, allocations: 0 / 358.9 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002266/0.1022, allocations: 1.312 MB / 360.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.376e-05/0.1023, allocations: 183.9 kB / 360.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003187/0.1026, allocations: 324.5 kB / 360.7 MB, free: 9.023 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.1027, allocations: 33.7 kB / 360.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.1028, allocations: 188.5 kB / 360.9 MB, free: 8.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.1029, allocations: 145.9 kB / 361 MB, free: 8.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1031, allocations: 70.14 kB / 361.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1032, allocations: 342.8 kB / 361.5 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001761/0.1034, allocations: 96.83 kB / 361.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.1036, allocations: 173.3 kB / 361.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003888/0.104, allocations: 250.2 kB / 362 MB, free: 7.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.104, allocations: 0 / 362 MB, free: 7.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005819/0.1046, allocations: 362.1 kB / 362.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1047, allocations: 4 kB / 362.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1047, allocations: 0 / 362.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.93e-05/0.1047, allocations: 28.97 kB / 362.3 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.1051, allocations: 91.83 kB / 362.4 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.1061, allocations: 1.394 MB / 363.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.1063, allocations: 20.02 kB / 363.8 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.1064, allocations: 8 kB / 363.9 MB, free: 5.633 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.0001824/0.1066, allocations: 176.8 kB / 364 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.585e-05/0.1066, allocations: 35.62 kB / 364.1 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.754e-05/0.1067, allocations: 43.88 kB / 364.1 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1067, allocations: 4 kB / 364.1 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.1067, allocations: 3.938 kB / 364.1 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006222/0.1074, allocations: 0.6579 MB / 364.8 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.1085, allocations: 0.8447 MB / 365.6 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1085, allocations: 4.062 kB / 365.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/0.1088, allocations: 79.89 kB / 365.7 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1088, allocations: 4 kB / 365.7 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.1089, allocations: 12 kB / 365.7 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.1089, allocations: 4 kB / 365.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1089, allocations: 128 / 365.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007254/0.1096, allocations: 0.5528 MB / 366.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.1098, allocations: 132.8 kB / 366.4 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.091e-05/0.1098, allocations: 12 kB / 366.4 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.1101, allocations: 23.89 kB / 366.4 MB, free: 2.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.1101, allocations: 23.97 kB / 366.5 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.1102, allocations: 12 kB / 366.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.1104, allocations: 231.1 kB / 366.7 MB, free: 2.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1104, allocations: 4 kB / 366.7 MB, free: 2.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000391/0.1108, allocations: 99.92 kB / 366.8 MB, free: 2.457 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.0009147/0.1117, allocations: 428.2 kB / 367.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006665/0.1124, allocations: 378.4 kB / 367.6 MB, free: 1.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.1124, allocations: 4 kB / 367.6 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.1126, allocations: 135.7 kB / 367.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000566/0.1132, allocations: 93.41 kB / 367.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.1149, allocations: 1.159 MB / 369 MB, free: 396 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1301/0.245, allocations: 0.7956 MB / 369.8 MB, free: 24.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002933/0.2454, allocations: 44.62 kB / 369.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.52e-05/0.2455, allocations: 33.83 kB / 369.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.2455, allocations: 0 / 369.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01023/0.2557, allocations: 5.197 MB / 375 MB, free: 24.62 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