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.001052/0.001052, allocations: 101.3 kB / 16.5 MB, free: 6.691 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.001136/0.001136, allocations: 193.9 kB / 17.42 MB, free: 6.086 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.288/1.288, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009834/0.0009834, allocations: 46.86 kB / 299.9 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08119/0.08219, allocations: 49.45 MB / 349.4 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.1998/0.2821, allocations: 67.13 MB / 416.5 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006202/0.2883, allocations: 5.544 MB / 422.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004284/0.2888, allocations: 8.438 kB / 422.1 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009603/0.2898, allocations: 308.8 kB / 422.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009088/0.2907, allocations: 0.5001 MB / 422.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01624/0.307, allocations: 6.256 MB / 429.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002149/0.3091, allocations: 2.304 MB / 431.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000305/0.3094, allocations: 169.4 kB / 431.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000706/0.3102, allocations: 0.5371 MB / 432.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006236/0.3108, allocations: 0.5839 MB / 432.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.3109, allocations: 44 kB / 432.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0169/0.3278, allocations: 10.37 MB / 443.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004102/0.3283, allocations: 279.2 kB / 443.4 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006785/0.3289, allocations: 394.4 kB / 443.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.3418, allocations: 6.034 MB / 449.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3418, allocations: 0 / 449.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3418, allocations: 0 / 449.8 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.38e-05/0.3419, allocations: 0 / 449.8 MB, free: 0.6719 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.004586/0.3465, allocations: 1.557 MB / 451.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3465, allocations: 12.03 kB / 451.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004705/0.347, allocations: 83.23 kB / 451.5 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006951/0.3477, allocations: 444.8 kB / 451.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.3478, allocations: 45.31 kB / 452 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.3479, allocations: 64 kB / 452 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001952/0.3499, allocations: 0.8107 MB / 452.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.3499, allocations: 11.83 kB / 452.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.78e-05/0.35, allocations: 31.94 kB / 452.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.354e-05/0.35, allocations: 16 kB / 452.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00188/0.3519, allocations: 1.02 MB / 453.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01689/0.3688, allocations: 12.78 MB / 466.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.3705, allocations: 0.738 MB / 467.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005706/0.3711, allocations: 407.3 kB / 467.8 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01461/0.3857, allocations: 12.24 MB / 480.1 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.3858, allocations: 47.53 kB / 480.1 MB, free: 13.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.314e-06/0.3858, allocations: 4 kB / 480.1 MB, free: 13.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=88): time 0.009643/0.3954, allocations: 3.38 MB / 483.5 MB, free: 10.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.3955, allocations: 64.39 kB / 483.6 MB, free: 10.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003854/0.3959, allocations: 356.5 kB / 483.9 MB, free: 9.852 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.182e-05/0.396, allocations: 45.7 kB / 483.9 MB, free: 9.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3961, allocations: 240.6 kB / 484.2 MB, free: 9.559 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.3964, allocations: 311.5 kB / 484.5 MB, free: 9.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/0.3966, allocations: 162.5 kB / 484.6 MB, free: 9.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.3967, allocations: 362.8 kB / 485 MB, free: 8.723 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005866/0.3973, allocations: 365.8 kB / 485.4 MB, free: 8.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009601/0.3983, allocations: 0.4885 MB / 485.8 MB, free: 7.844 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001713/0.4, allocations: 0.8943 MB / 486.7 MB, free: 6.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4001, allocations: 0 / 486.7 MB, free: 6.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002561/0.4026, allocations: 1.117 MB / 487.9 MB, free: 5.777 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.4027, allocations: 7.938 kB / 487.9 MB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.4027, allocations: 4 kB / 487.9 MB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008219/0.4035, allocations: 167.5 kB / 488 MB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007674/0.4043, allocations: 191.7 kB / 488.2 MB, free: 5.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.4069, allocations: 3.911 MB / 492.1 MB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005218/0.4074, allocations: 64.12 kB / 492.2 MB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.413e-05/0.4075, allocations: 43.98 kB / 492.2 MB, free: 1.07 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.0003556/0.4079, allocations: 234.2 kB / 492.5 MB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.4083, allocations: 55.44 kB / 492.5 MB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/0.4106, allocations: 1.284 MB / 493.8 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4107, allocations: 8 kB / 493.8 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.4107, allocations: 0 / 493.8 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001796/0.4125, allocations: 1.316 MB / 495.1 MB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/0.4157, allocations: 1.975 MB / 497.1 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.4157, allocations: 0 / 497.1 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006908/0.4164, allocations: 163.7 kB / 497.3 MB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001809/0.4182, allocations: 309.1 kB / 497.6 MB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.139e-05/0.4183, allocations: 27.98 kB / 497.6 MB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007415/0.419, allocations: 1.293 MB / 498.9 MB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.419, allocations: 0 / 498.9 MB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.4216, allocations: 1.409 MB / 0.4886 GB, free: 8.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.4218, allocations: 124.6 kB / 0.4887 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.4219, allocations: 23.98 kB / 0.4887 GB, free: 8.527 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006112/0.4225, allocations: 59.78 kB / 0.4888 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.652e-05/0.4226, allocations: 52.92 kB / 0.4888 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.772e-05/0.4227, allocations: 51.91 kB / 0.4889 GB, free: 8.363 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002998/0.423, allocations: 283 kB / 0.4891 GB, free: 8.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.423, allocations: 0 / 0.4891 GB, free: 8.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003549/0.4266, allocations: 1.402 MB / 0.4905 GB, free: 6.688 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.005905/0.4325, allocations: 1.73 MB / 0.4922 GB, free: 4.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002062/0.4346, allocations: 1.144 MB / 0.4933 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.4346, allocations: 4 kB / 0.4933 GB, free: 3.777 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009005/0.4355, allocations: 491.9 kB / 0.4938 GB, free: 3.293 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.4374, allocations: 377.2 kB / 0.4941 GB, free: 2.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002962/0.4404, allocations: 1.917 MB / 0.496 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004664/0.4408, allocations: 0.9089 MB / 0.4969 GB, free: 44 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000779/0.4416, allocations: 205.2 kB / 0.4971 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.4418, allocations: 75.42 kB / 0.4972 GB, free: 15.77 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4419, allocations: 4 kB / 0.4972 GB, free: 15.76 MB / 430.1 MB Notification: Performance of Templates: time 0.1963/0.6381, allocations: 49.13 MB / 0.5452 GB, free: 153.8 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","/var/lib/jenkins/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