Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001035, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 192.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.7 MB / 246.4 MB, free: 9.797 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001963/0.0001964, allocations: 4 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08713/0.08734, allocations: 51.52 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2489/0.3362, allocations: 60.67 MB / 419.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005864/0.3422, allocations: 5.1 MB / 424.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000475/0.3427, allocations: 5.5 kB / 424.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008167/0.3435, allocations: 234 kB / 424.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008641/0.3444, allocations: 0.4888 MB / 425.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01629/0.3607, allocations: 5.467 MB / 430.6 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.3628, allocations: 1.906 MB / 432.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002723/0.3631, allocations: 155.9 kB / 432.6 MB, free: 1.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007084/0.3638, allocations: 0.5333 MB / 433.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00064/0.3644, allocations: 0.5528 MB / 433.7 MB, free: 396 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.35e-05/0.3645, allocations: 36 kB / 433.8 MB, free: 360 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01557/0.3801, allocations: 8.622 MB / 442.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003956/0.3805, allocations: 271.3 kB / 442.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.3808, allocations: 173.4 kB / 442.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006321/0.3871, allocations: 3.859 MB / 446.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3871, allocations: 4 kB / 446.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3871, allocations: 0 / 446.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.3872, allocations: 0 / 446.7 MB, free: 3.406 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.002907/0.3901, allocations: 1.42 MB / 448.1 MB, free: 1.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.3901, allocations: 11.97 kB / 448.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003517/0.3905, allocations: 87.19 kB / 448.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005195/0.391, allocations: 425.1 kB / 448.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.391, allocations: 49.31 kB / 448.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.042e-05/0.3911, allocations: 63.91 kB / 448.7 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001616/0.3928, allocations: 0.8029 MB / 449.5 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.3928, allocations: 4 kB / 449.5 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.513e-05/0.3929, allocations: 28 kB / 449.6 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.652e-05/0.3929, allocations: 19.98 kB / 449.6 MB, free: 420 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/0.3947, allocations: 1.028 MB / 450.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/0.4097, allocations: 12.82 MB / 463.4 MB, free: 436 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.4113, allocations: 0.7568 MB / 464.2 MB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005455/0.4119, allocations: 414.5 kB / 464.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01295/0.4248, allocations: 12.3 MB / 476.9 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.4249, allocations: 43.59 kB / 476.9 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 3.056e-06/0.4249, allocations: 4 kB / 476.9 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of matching and sorting (n=88): time 0.009096/0.434, allocations: 3.412 MB / 480.3 MB, free: 13.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.35e-05/0.434, allocations: 64.36 kB / 480.4 MB, free: 12.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003933/0.4344, allocations: 352.4 kB / 480.8 MB, free: 12.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.263e-05/0.4345, allocations: 45.7 kB / 480.8 MB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.4347, allocations: 236.7 kB / 481 MB, free: 12.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002144/0.4349, allocations: 303.6 kB / 481.3 MB, free: 12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.435, allocations: 20 kB / 481.3 MB, free: 11.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.4351, allocations: 358.8 kB / 481.7 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.4357, allocations: 377.7 kB / 482.1 MB, free: 11.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008548/0.4365, allocations: 488.2 kB / 482.5 MB, free: 10.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008848/0.4374, allocations: 442.9 kB / 483 MB, free: 10.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4374, allocations: 3.938 kB / 483 MB, free: 10.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002474/0.4399, allocations: 1.117 MB / 484.1 MB, free: 9.164 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.775e-05/0.44, allocations: 4 kB / 484.1 MB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.44, allocations: 7.984 kB / 484.1 MB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007831/0.4408, allocations: 163.5 kB / 484.3 MB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007575/0.4415, allocations: 195.7 kB / 484.5 MB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002607/0.4442, allocations: 3.908 MB / 488.4 MB, free: 4.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005/0.4447, allocations: 67.86 kB / 488.4 MB, free: 4.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-05/0.4448, allocations: 43.98 kB / 488.5 MB, free: 4.461 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003355/0.4451, allocations: 229.6 kB / 488.7 MB, free: 4.227 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.4455, allocations: 59.44 kB / 488.8 MB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002332/0.4478, allocations: 1.284 MB / 490 MB, free: 2.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.4478, allocations: 8 kB / 490 MB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.4478, allocations: 4 kB / 490.1 MB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001781/0.4496, allocations: 1.327 MB / 491.4 MB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003212/0.4529, allocations: 1.967 MB / 493.3 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.4529, allocations: 0 / 493.3 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007098/0.4536, allocations: 163.8 kB / 493.5 MB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/0.4554, allocations: 297.3 kB / 493.8 MB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.655e-05/0.4555, allocations: 31.98 kB / 493.8 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007455/0.4562, allocations: 1.285 MB / 495.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4562, allocations: 192 / 495.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002494/0.4587, allocations: 1.421 MB / 496.5 MB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001617/0.4589, allocations: 136.6 kB / 496.7 MB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.637e-05/0.459, allocations: 16 kB / 496.7 MB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005568/0.4596, allocations: 63.75 kB / 496.7 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.4597, allocations: 56.92 kB / 496.8 MB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.4598, allocations: 43.97 kB / 496.8 MB, free: 11.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003042/0.4601, allocations: 279 kB / 497.1 MB, free: 11.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4601, allocations: 0 / 497.1 MB, free: 11.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003466/0.4636, allocations: 1.405 MB / 498.5 MB, free: 10.07 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 (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005262/0.4688, allocations: 1.605 MB / 0.4884 GB, free: 8.465 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001983/0.4708, allocations: 1.152 MB / 0.4895 GB, free: 7.277 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4708, allocations: 4.125 kB / 0.4895 GB, free: 7.273 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008469/0.4717, allocations: 487.2 kB / 0.49 GB, free: 6.793 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/0.4734, allocations: 373.8 kB / 0.4904 GB, free: 6.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.4762, allocations: 1.978 MB / 0.4923 GB, free: 4.434 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004435/0.4766, allocations: 0.9089 MB / 0.4932 GB, free: 3.496 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007653/0.4774, allocations: 209.2 kB / 0.4934 GB, free: 3.289 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4776, allocations: 83.41 kB / 0.4935 GB, free: 3.207 MB / 414.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4776, allocations: 0 / 0.4935 GB, free: 3.207 MB / 414.1 MB Notification: Performance of Templates: time 0.2335/0.7111, allocations: 48.97 MB / 0.5413 GB, free: 148.7 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches