Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001393/0.001392, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001485/0.001486, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001106/0.001106, allocations: 51.92 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07639/0.0775, allocations: 46.62 MB / 326.6 MB, free: 4.902 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.2099/0.2875, allocations: 67.3 MB / 393.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.2933, allocations: 5.554 MB / 399.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002887/0.2937, allocations: 4.094 kB / 399.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009098/0.2946, allocations: 314.5 kB / 399.8 MB, free: 9.938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007643/0.2954, allocations: 0.4967 MB / 400.3 MB, free: 9.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01481/0.3102, allocations: 5.904 MB / 406.2 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002898/0.3131, allocations: 2.308 MB / 408.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003289/0.3135, allocations: 173.5 kB / 408.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008807/0.3144, allocations: 0.5338 MB / 409.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000617/0.315, allocations: 0.587 MB / 409.8 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.851e-05/0.3151, allocations: 41.81 kB / 409.8 MB, free: 9.039 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01528/0.3304, allocations: 10.27 MB / 420.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003531/0.3308, allocations: 285.6 kB / 420.3 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005665/0.3313, allocations: 402.3 kB / 420.7 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.3419, allocations: 6.01 MB / 426.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3419, allocations: 0 / 426.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.267e-06/0.3419, allocations: 0 / 426.7 MB, free: 15.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.342, allocations: 3.938 kB / 426.8 MB, free: 15.2 MB / 334.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.003402/0.3454, allocations: 1.547 MB / 428.3 MB, free: 13.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.3454, allocations: 12.03 kB / 428.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004331/0.3458, allocations: 83.8 kB / 428.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.3465, allocations: 443 kB / 428.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.69e-05/0.3465, allocations: 49.25 kB / 428.9 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3466, allocations: 60 kB / 428.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.3484, allocations: 0.8147 MB / 429.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.3485, allocations: 3.906 kB / 429.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.528e-05/0.3486, allocations: 28 kB / 429.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.3486, allocations: 16 kB / 429.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001853/0.3504, allocations: 1.024 MB / 430.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01672/0.3672, allocations: 12.77 MB / 443.6 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.3689, allocations: 0.7488 MB / 444.3 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005615/0.3694, allocations: 419.3 kB / 444.7 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01491/0.3844, allocations: 12.24 MB / 457 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.457e-05/0.3844, allocations: 43.22 kB / 457 MB, free: 12.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=78): time 2.835e-06/0.3845, allocations: 0 / 457 MB, free: 12.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=88): time 0.009491/0.394, allocations: 3.377 MB / 460.4 MB, free: 8.914 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.394, allocations: 64.41 kB / 460.5 MB, free: 8.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.3944, allocations: 348.5 kB / 460.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.933e-05/0.3945, allocations: 45.7 kB / 460.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.3946, allocations: 247.5 kB / 461.1 MB, free: 8.199 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001994/0.3948, allocations: 306.2 kB / 461.4 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.3951, allocations: 162.5 kB / 461.6 MB, free: 7.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.3952, allocations: 362.8 kB / 461.9 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005513/0.3958, allocations: 365.8 kB / 462.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008859/0.3967, allocations: 496.2 kB / 462.8 MB, free: 6.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001635/0.3983, allocations: 0.902 MB / 463.7 MB, free: 5.562 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3983, allocations: 0 / 463.7 MB, free: 5.562 MB / 366.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002401/0.4007, allocations: 1.127 MB / 464.8 MB, free: 4.422 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.4007, allocations: 7.938 kB / 464.8 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.4008, allocations: 7.938 kB / 464.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007812/0.4015, allocations: 163.5 kB / 465 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007489/0.4023, allocations: 191.7 kB / 465.1 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002648/0.405, allocations: 3.9 MB / 469 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004916/0.4055, allocations: 67.97 kB / 469.1 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.493e-05/0.4056, allocations: 43.98 kB / 469.2 MB, free: 15.72 MB / 382.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.0003359/0.4059, allocations: 229.6 kB / 469.4 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003704/0.4063, allocations: 59.44 kB / 469.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.4086, allocations: 1.283 MB / 470.7 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4087, allocations: 8 kB / 470.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.4087, allocations: 3.938 kB / 470.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001802/0.4105, allocations: 1.324 MB / 472.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003191/0.4137, allocations: 1.976 MB / 474 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4137, allocations: 0 / 474 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.4144, allocations: 163.7 kB / 474.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.4162, allocations: 301.2 kB / 474.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.563e-05/0.4163, allocations: 31.97 kB / 474.5 MB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007514/0.4171, allocations: 1.289 MB / 475.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.4171, allocations: 192 / 475.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002522/0.4196, allocations: 1.421 MB / 477.2 MB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.4198, allocations: 124.6 kB / 477.3 MB, free: 7.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.4199, allocations: 23.98 kB / 477.4 MB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005978/0.4205, allocations: 59.69 kB / 477.4 MB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.832e-05/0.4206, allocations: 52.92 kB / 477.5 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.52e-05/0.4207, allocations: 43.97 kB / 477.5 MB, free: 7.027 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003033/0.421, allocations: 287 kB / 477.8 MB, free: 6.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.421, allocations: 0 / 477.8 MB, free: 6.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003579/0.4246, allocations: 1.386 MB / 479.2 MB, free: 5.363 MB / 382.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.005654/0.4303, allocations: 1.747 MB / 480.9 MB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002025/0.4323, allocations: 1.144 MB / 482.1 MB, free: 2.562 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.4323, allocations: 0 / 482.1 MB, free: 2.562 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008619/0.4332, allocations: 491.2 kB / 482.6 MB, free: 2.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001761/0.435, allocations: 375.4 kB / 482.9 MB, free: 1.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/0.4379, allocations: 1.922 MB / 484.8 MB, free: 15.76 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.4384, allocations: 0.905 MB / 485.8 MB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007647/0.4391, allocations: 213.2 kB / 486 MB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002154/0.4394, allocations: 75.41 kB / 486 MB, free: 14.54 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4394, allocations: 0 / 486 MB, free: 14.54 MB / 398.1 MB Notification: Performance of Templates: time 0.06709/0.5065, allocations: 50.56 MB / 0.524 GB, free: 11.93 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/MoistAir2/MoistAir2.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches