Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 95.12 kB / 17.31 MB, free: 5.574 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: 179.6 kB / 18.21 MB, free: 5.148 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.363/1.363, allocations: 223.3 MB / 242.3 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002811, allocations: 7.938 kB / 302.1 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1028, allocations: 50.41 MB / 352.5 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2459/0.3487, allocations: 65.83 MB / 418.3 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006924/0.3557, allocations: 5.474 MB / 423.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.3563, allocations: 4.125 kB / 423.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.3575, allocations: 311.2 kB / 424.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.3588, allocations: 0.4995 MB / 424.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01862/0.3775, allocations: 6.24 MB / 430.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002687/0.3802, allocations: 2.304 MB / 433.1 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003995/0.3806, allocations: 161.4 kB / 433.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00111/0.3817, allocations: 0.5254 MB / 433.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008196/0.3826, allocations: 0.5722 MB / 434.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.344e-05/0.3827, allocations: 36 kB / 434.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01857/0.4012, allocations: 10.37 MB / 444.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004111/0.4017, allocations: 271.2 kB / 445.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005825/0.4023, allocations: 412.1 kB / 445.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007524/0.4098, allocations: 4.089 MB / 449.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.4099, allocations: 0 / 449.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4099, allocations: 0 / 449.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.4099, allocations: 0 / 449.6 MB, free: 3.379 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003441/0.4133, allocations: 1.409 MB / 451 MB, free: 1.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.4134, allocations: 12.03 kB / 451 MB, free: 1.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004095/0.4138, allocations: 83.23 kB / 451.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.4144, allocations: 436.8 kB / 451.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.4144, allocations: 48.31 kB / 451.5 MB, free: 1.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.4145, allocations: 64 kB / 451.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001746/0.4163, allocations: 0.8107 MB / 452.4 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.4163, allocations: 7.906 kB / 452.4 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.252e-05/0.4164, allocations: 28 kB / 452.4 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.4164, allocations: 16 kB / 452.5 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.4183, allocations: 1.028 MB / 453.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01679/0.4351, allocations: 12.82 MB / 466.3 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/0.4368, allocations: 0.7575 MB / 467.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005743/0.4374, allocations: 411.3 kB / 467.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01443/0.4518, allocations: 12.31 MB / 479.8 MB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/0.4519, allocations: 47.59 kB / 479.8 MB, free: 492 kB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.825e-06/0.4519, allocations: 4 kB / 479.8 MB, free: 488 kB / 382.1 MB Notification: Performance of matching and sorting (n=88): time 0.009372/0.4613, allocations: 3.421 MB / 483.2 MB, free: 12.97 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.4614, allocations: 60.41 kB / 483.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003837/0.4618, allocations: 352.5 kB / 483.6 MB, free: 12.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.144e-05/0.4618, allocations: 53.64 kB / 483.7 MB, free: 12.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.462, allocations: 240.6 kB / 483.9 MB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.4622, allocations: 303.6 kB / 484.2 MB, free: 11.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.4623, allocations: 73.67 kB / 484.3 MB, free: 11.87 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.4625, allocations: 362.8 kB / 484.6 MB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005744/0.4631, allocations: 377.8 kB / 485 MB, free: 11.13 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008722/0.4639, allocations: 492.1 kB / 485.5 MB, free: 10.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.4656, allocations: 0.9021 MB / 486.4 MB, free: 9.688 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4656, allocations: 4 kB / 486.4 MB, free: 9.684 MB / 398.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002456/0.4681, allocations: 1.105 MB / 487.5 MB, free: 8.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.4681, allocations: 11.94 kB / 487.5 MB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.4681, allocations: 4 kB / 487.5 MB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000806/0.4689, allocations: 167.5 kB / 487.7 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007226/0.4697, allocations: 195.7 kB / 487.9 MB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.4724, allocations: 3.916 MB / 491.8 MB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.473, allocations: 63.91 kB / 491.9 MB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.4731, allocations: 43.98 kB / 491.9 MB, free: 3.836 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003518/0.4735, allocations: 226.2 kB / 492.1 MB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003615/0.4738, allocations: 63.34 kB / 492.2 MB, free: 3.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002369/0.4762, allocations: 1.277 MB / 493.5 MB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.4762, allocations: 19.97 kB / 493.5 MB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.4762, allocations: 0 / 493.5 MB, free: 2.211 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001778/0.478, allocations: 1.316 MB / 494.8 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00317/0.4812, allocations: 1.971 MB / 496.8 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4812, allocations: 4 kB / 496.8 MB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006684/0.4819, allocations: 159.8 kB / 496.9 MB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001761/0.4837, allocations: 305 kB / 497.2 MB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.074e-05/0.4838, allocations: 27.98 kB / 497.3 MB, free: 14.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007612/0.4845, allocations: 1.293 MB / 498.5 MB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4845, allocations: 0 / 498.5 MB, free: 12.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.487, allocations: 1.409 MB / 500 MB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.4873, allocations: 136.5 kB / 0.4884 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.815e-05/0.4874, allocations: 27.92 kB / 0.4884 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/0.488, allocations: 59.75 kB / 0.4885 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.4881, allocations: 56.86 kB / 0.4885 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.431e-05/0.4882, allocations: 47.91 kB / 0.4886 GB, free: 11.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003092/0.4885, allocations: 279 kB / 0.4888 GB, free: 10.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4885, allocations: 4 kB / 0.4888 GB, free: 10.85 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004081/0.4926, allocations: 1.405 MB / 0.4902 GB, free: 9.441 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006256/0.4989, allocations: 1.72 MB / 0.4919 GB, free: 7.719 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002353/0.5013, allocations: 1.148 MB / 0.493 GB, free: 6.535 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.5013, allocations: 0 / 0.493 GB, free: 6.535 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009354/0.5023, allocations: 491.2 kB / 0.4935 GB, free: 6.051 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002117/0.5044, allocations: 385.6 kB / 0.4938 GB, free: 5.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/0.5074, allocations: 2.085 MB / 0.4959 GB, free: 3.562 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.508, allocations: 0.9128 MB / 0.4968 GB, free: 2.625 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002919/0.5083, allocations: 95.33 kB / 0.4968 GB, free: 2.531 MB / 414.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5083, allocations: 3.938 kB / 0.4969 GB, free: 2.527 MB / 414.1 MB Notification: Performance of Templates: time 0.2138/0.7221, allocations: 40.71 MB / 0.5366 GB, free: 156.7 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches