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.001425/0.001425, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001597/0.001597, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.356/1.356, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 50.89 kB / 301.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1058, allocations: 49.44 MB / 350.7 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2852/0.3911, allocations: 65.57 MB / 416.3 MB, free: 452 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007098/0.3982, allocations: 5.454 MB / 421.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004913/0.3988, allocations: 8.812 kB / 421.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.3999, allocations: 350 kB / 422.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001022/0.4009, allocations: 0.5082 MB / 422.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02033/0.4212, allocations: 7.434 MB / 430 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002119/0.4234, allocations: 1.547 MB / 431.6 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003658/0.4238, allocations: 216.7 kB / 431.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.4248, allocations: 0.6191 MB / 432.4 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000817/0.4256, allocations: 0.5722 MB / 433 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.4258, allocations: 84 kB / 433.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01954/0.4453, allocations: 10.03 MB / 443.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004816/0.4458, allocations: 323.3 kB / 443.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006454/0.4465, allocations: 438.3 kB / 443.8 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01428/0.4608, allocations: 5.937 MB / 449.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.4608, allocations: 0 / 449.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4608, allocations: 0 / 449.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.184e-05/0.4609, allocations: 0 / 449.8 MB, free: 0.8672 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.004541/0.4654, allocations: 1.569 MB / 451.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.4655, allocations: 11.89 kB / 451.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005209/0.466, allocations: 83.23 kB / 451.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006903/0.4667, allocations: 436.8 kB / 451.9 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/0.4668, allocations: 45.31 kB / 451.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.4669, allocations: 64 kB / 452 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001862/0.4688, allocations: 0.8029 MB / 452.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.4688, allocations: 7.906 kB / 452.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.801e-05/0.4689, allocations: 31.98 kB / 452.8 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.582e-05/0.4689, allocations: 16 kB / 452.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/0.4709, allocations: 1.02 MB / 453.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01855/0.4895, allocations: 12.8 MB / 466.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001944/0.4915, allocations: 0.7337 MB / 467.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006389/0.4921, allocations: 407.3 kB / 467.8 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01543/0.5076, allocations: 12.25 MB / 480 MB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.76e-05/0.5077, allocations: 44.09 kB / 480.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 2.975e-06/0.5077, allocations: 0 / 480.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=88): time 0.01046/0.5182, allocations: 3.382 MB / 483.5 MB, free: 10.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.5183, allocations: 68.39 kB / 483.5 MB, free: 10.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004854/0.5188, allocations: 356.5 kB / 483.9 MB, free: 10.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.5189, allocations: 45.7 kB / 483.9 MB, free: 9.984 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.5191, allocations: 244.6 kB / 484.2 MB, free: 9.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000274/0.5194, allocations: 303.6 kB / 484.4 MB, free: 9.438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002704/0.5197, allocations: 162.5 kB / 484.6 MB, free: 9.273 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.5199, allocations: 362.8 kB / 485 MB, free: 8.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006067/0.5205, allocations: 365.8 kB / 485.3 MB, free: 8.551 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000932/0.5214, allocations: 0.4884 MB / 485.8 MB, free: 8.027 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.5231, allocations: 0.8982 MB / 486.7 MB, free: 7.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.5231, allocations: 8 kB / 486.7 MB, free: 7.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002567/0.5257, allocations: 1.113 MB / 487.8 MB, free: 5.957 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.5257, allocations: 7.938 kB / 487.8 MB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5258, allocations: 4 kB / 487.8 MB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008135/0.5266, allocations: 163.6 kB / 488 MB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/0.5273, allocations: 191.7 kB / 488.2 MB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002987/0.5303, allocations: 4.116 MB / 492.3 MB, free: 1.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000434/0.5308, allocations: 20 kB / 492.3 MB, free: 1.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/0.5309, allocations: 44.23 kB / 492.4 MB, free: 1.078 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.0003768/0.5313, allocations: 230.3 kB / 492.6 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000426/0.5317, allocations: 67.33 kB / 492.7 MB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00239/0.5341, allocations: 1.277 MB / 493.9 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5341, allocations: 8 kB / 493.9 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.5341, allocations: 0 / 493.9 MB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001802/0.536, allocations: 1.32 MB / 495.3 MB, free: 14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003307/0.5393, allocations: 1.979 MB / 497.2 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5393, allocations: 0 / 497.2 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006971/0.54, allocations: 155.8 kB / 497.4 MB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001742/0.5418, allocations: 297.3 kB / 497.7 MB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.777e-05/0.5418, allocations: 35.92 kB / 497.7 MB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007889/0.5426, allocations: 1.293 MB / 499 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5427, allocations: 4.031 kB / 499 MB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00259/0.5453, allocations: 1.417 MB / 0.4887 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/0.5454, allocations: 128.6 kB / 0.4888 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.5456, allocations: 20 kB / 0.4888 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005618/0.5461, allocations: 31.97 kB / 0.4889 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.5462, allocations: 56.91 kB / 0.4889 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.708e-05/0.5464, allocations: 39.97 kB / 0.489 GB, free: 8.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003146/0.5467, allocations: 279 kB / 0.4892 GB, free: 8.129 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.894e-06/0.5467, allocations: 0 / 0.4892 GB, free: 8.129 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004078/0.5508, allocations: 1.409 MB / 0.4906 GB, free: 6.719 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.006795/0.5576, allocations: 1.731 MB / 0.4923 GB, free: 4.984 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002934/0.5605, allocations: 1.265 MB / 0.4935 GB, free: 3.688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/0.5606, allocations: 4 kB / 0.4935 GB, free: 3.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009857/0.5616, allocations: 491.2 kB / 0.494 GB, free: 3.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.5637, allocations: 397 kB / 0.4944 GB, free: 2.812 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.5668, allocations: 1.703 MB / 0.496 GB, free: 1.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005239/0.5674, allocations: 0.9088 MB / 0.4969 GB, free: 140 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.5677, allocations: 91.41 kB / 0.497 GB, free: 48 kB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5677, allocations: 0 / 0.497 GB, free: 48 kB / 414.1 MB Notification: Performance of Templates: time 0.2235/0.7912, allocations: 40.82 MB / 0.5369 GB, free: 157.1 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