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.001381/0.001381, allocations: 114.7 kB / 17.28 MB, free: 6.219 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.00124/0.00124, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.307/1.307, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001009/0.001009, allocations: 42.89 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09353, allocations: 49.45 MB / 350.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2349/0.3284, allocations: 65.34 MB / 415.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007291/0.3357, allocations: 5.434 MB / 421 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003631/0.3361, allocations: 3.094 kB / 421 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.3372, allocations: 321.8 kB / 421.3 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008429/0.3381, allocations: 488.2 kB / 421.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01866/0.3567, allocations: 6.727 MB / 428.5 MB, free: 6.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00214/0.3589, allocations: 1.551 MB / 430.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003645/0.3593, allocations: 212.7 kB / 430.3 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.3603, allocations: 0.6191 MB / 430.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007191/0.3611, allocations: 0.6073 MB / 431.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.3612, allocations: 84 kB / 431.6 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01821/0.3794, allocations: 10.18 MB / 441.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004461/0.3799, allocations: 315.3 kB / 442.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006329/0.3805, allocations: 450.3 kB / 442.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008086/0.3886, allocations: 4.125 MB / 446.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.3887, allocations: 0 / 446.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3887, allocations: 0 / 446.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.3887, allocations: 0 / 446.6 MB, free: 4.023 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.003804/0.3925, allocations: 1.561 MB / 448.2 MB, free: 2.414 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3926, allocations: 8.031 kB / 448.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004231/0.393, allocations: 83.23 kB / 448.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005831/0.3936, allocations: 440.8 kB / 448.7 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.3937, allocations: 45.31 kB / 448.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.353e-05/0.3938, allocations: 67.94 kB / 448.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001643/0.3954, allocations: 0.8107 MB / 449.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.271e-05/0.3954, allocations: 3.906 kB / 449.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.41e-05/0.3955, allocations: 28 kB / 449.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/0.3955, allocations: 16 kB / 449.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.3973, allocations: 1.024 MB / 450.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/0.4145, allocations: 12.78 MB / 463.5 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.4162, allocations: 0.7374 MB / 464.2 MB, free: 192 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005546/0.4168, allocations: 407.3 kB / 464.6 MB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01499/0.4318, allocations: 12.24 MB / 476.9 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.625e-05/0.4319, allocations: 44.09 kB / 476.9 MB, free: 1.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.926e-06/0.4319, allocations: 0 / 476.9 MB, free: 1.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=88): time 0.01002/0.4419, allocations: 3.387 MB / 480.3 MB, free: 13.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.442, allocations: 60.41 kB / 480.4 MB, free: 13.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004178/0.4425, allocations: 352.5 kB / 480.7 MB, free: 13.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.828e-05/0.4426, allocations: 49.7 kB / 480.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001627/0.4427, allocations: 240.6 kB / 481 MB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.443, allocations: 299.6 kB / 481.3 MB, free: 12.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002505/0.4432, allocations: 166.5 kB / 481.4 MB, free: 12.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4434, allocations: 366.8 kB / 481.8 MB, free: 12.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006349/0.444, allocations: 365.8 kB / 482.2 MB, free: 11.73 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009234/0.445, allocations: 496.2 kB / 482.6 MB, free: 11.21 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.4467, allocations: 0.9021 MB / 483.5 MB, free: 10.28 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4467, allocations: 0 / 483.5 MB, free: 10.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002595/0.4493, allocations: 1.113 MB / 484.7 MB, free: 9.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.4493, allocations: 7.938 kB / 484.7 MB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.4494, allocations: 4.281 kB / 484.7 MB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008381/0.4502, allocations: 167.3 kB / 484.8 MB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007415/0.451, allocations: 187.8 kB / 485 MB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/0.4541, allocations: 4.128 MB / 489.1 MB, free: 4.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.4547, allocations: 64.06 kB / 489.2 MB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.672e-05/0.4548, allocations: 43.98 kB / 489.2 MB, free: 4.211 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.0003826/0.4552, allocations: 226.2 kB / 489.5 MB, free: 3.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003816/0.4556, allocations: 63.34 kB / 489.5 MB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002374/0.458, allocations: 1.281 MB / 490.8 MB, free: 2.602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.458, allocations: 8 kB / 490.8 MB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.458, allocations: 0 / 490.8 MB, free: 2.594 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001861/0.4599, allocations: 1.324 MB / 492.1 MB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003381/0.4633, allocations: 1.975 MB / 494.1 MB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4633, allocations: 0 / 494.1 MB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000748/0.4641, allocations: 167.9 kB / 494.3 MB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.4658, allocations: 293.1 kB / 494.6 MB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.679e-05/0.4659, allocations: 31.98 kB / 494.6 MB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007919/0.4667, allocations: 1.285 MB / 495.9 MB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4667, allocations: 3.938 kB / 495.9 MB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.4693, allocations: 1.417 MB / 497.3 MB, free: 11.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.4695, allocations: 124.6 kB / 497.4 MB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.965e-05/0.4696, allocations: 20 kB / 497.4 MB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000593/0.4702, allocations: 59.8 kB / 497.5 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.4703, allocations: 60.98 kB / 497.6 MB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.286e-05/0.4704, allocations: 47.97 kB / 497.6 MB, free: 11.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003295/0.4708, allocations: 275 kB / 497.9 MB, free: 11.24 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4708, allocations: 0 / 497.9 MB, free: 11.24 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004483/0.4753, allocations: 1.402 MB / 499.3 MB, free: 9.84 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.006434/0.4817, allocations: 1.718 MB / 0.4893 GB, free: 8.121 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002995/0.4848, allocations: 1.269 MB / 0.4905 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.4848, allocations: 0 / 0.4905 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009759/0.4858, allocations: 0.4913 MB / 0.491 GB, free: 6.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.4877, allocations: 393.7 kB / 0.4913 GB, free: 5.938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003147/0.4909, allocations: 1.951 MB / 0.4933 GB, free: 3.949 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004967/0.4914, allocations: 0.9205 MB / 0.4942 GB, free: 3.004 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003246/0.4918, allocations: 87.41 kB / 0.4942 GB, free: 2.918 MB / 414.1 MB Notification: Performance of SimCode: time 2.755e-06/0.4918, allocations: 4 kB / 0.4942 GB, free: 2.914 MB / 414.1 MB Notification: Performance of Templates: time 0.2082/0.7, allocations: 40.81 MB / 0.5341 GB, free: 157.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