Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 179.4 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007715/0.0007715, allocations: 95.78 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002877, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2029, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.04449/0.2474, allocations: 60.68 MB / 435.2 MB, free: 4.031 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005746/0.2532, allocations: 5.106 MB / 440.3 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002453/0.2534, allocations: 4 kB / 440.3 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006264/0.2541, allocations: 226.6 kB / 440.6 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007009/0.2548, allocations: 0.4935 MB / 441.1 MB, free: 14.19 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01353/0.2683, allocations: 5.195 MB / 446.2 MB, free: 8.992 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001795/0.2701, allocations: 1.906 MB / 448.2 MB, free: 7.082 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002554/0.2704, allocations: 163.4 kB / 448.3 MB, free: 6.918 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000616/0.271, allocations: 0.5216 MB / 448.8 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006077/0.2716, allocations: 0.5567 MB / 449.4 MB, free: 5.836 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.56e-05/0.2717, allocations: 36 kB / 449.4 MB, free: 5.801 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01357/0.2853, allocations: 8.516 MB / 457.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003191/0.2857, allocations: 275.2 kB / 458.2 MB, free: 13 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002274/0.2859, allocations: 165.5 kB / 458.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004977/0.2909, allocations: 3.832 MB / 462.2 MB, free: 8.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2909, allocations: 3.938 kB / 462.2 MB, free: 8.992 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2909, allocations: 3.938 kB / 462.2 MB, free: 8.988 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.492e-05/0.2909, allocations: 0 / 462.2 MB, free: 8.988 MB / 346.7 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.00326/0.2942, allocations: 1.404 MB / 463.6 MB, free: 7.535 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2942, allocations: 12.02 kB / 463.6 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004129/0.2947, allocations: 79.25 kB / 463.7 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006159/0.2953, allocations: 429.1 kB / 464.1 MB, free: 6.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.826e-05/0.2953, allocations: 49.31 kB / 464.2 MB, free: 6.93 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.379e-05/0.2954, allocations: 67.94 kB / 464.2 MB, free: 6.863 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.2972, allocations: 0.8029 MB / 465 MB, free: 6.055 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.259e-05/0.2972, allocations: 3.906 kB / 465 MB, free: 6.051 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.402e-05/0.2973, allocations: 28 kB / 465.1 MB, free: 6.023 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.2973, allocations: 19.95 kB / 465.1 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.2991, allocations: 1.02 MB / 466.1 MB, free: 4.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01674/0.3159, allocations: 12.83 MB / 478.9 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001694/0.3176, allocations: 0.7516 MB / 479.7 MB, free: 5.258 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005786/0.3182, allocations: 407.2 kB / 480.1 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01453/0.3327, allocations: 12.31 MB / 492.4 MB, free: 6.172 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3328, allocations: 43.22 kB / 492.4 MB, free: 6.121 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.315e-06/0.3328, allocations: 0 / 492.4 MB, free: 6.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.009647/0.3425, allocations: 3.423 MB / 495.9 MB, free: 2.609 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.3425, allocations: 64.39 kB / 495.9 MB, free: 2.535 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004763/0.343, allocations: 348.5 kB / 496.3 MB, free: 2.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/0.3431, allocations: 45.7 kB / 496.3 MB, free: 2.137 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.3433, allocations: 240.6 kB / 496.5 MB, free: 1.895 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/0.3435, allocations: 307.6 kB / 496.8 MB, free: 1.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.3435, allocations: 20 kB / 496.9 MB, free: 1.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.3437, allocations: 366.8 kB / 497.2 MB, free: 1.203 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005921/0.3443, allocations: 361.8 kB / 497.6 MB, free: 0.8477 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00087/0.3452, allocations: 484.2 kB / 498 MB, free: 352 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009221/0.3461, allocations: 450.8 kB / 498.5 MB, free: 15.91 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3461, allocations: 4 kB / 498.5 MB, free: 15.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002427/0.3486, allocations: 1.105 MB / 499.6 MB, free: 14.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3486, allocations: 15.89 kB / 499.6 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3486, allocations: 4 kB / 499.6 MB, free: 14.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007841/0.3494, allocations: 163.6 kB / 499.8 MB, free: 14.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00077/0.3502, allocations: 191.7 kB / 500 MB, free: 14.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002595/0.3528, allocations: 3.912 MB / 0.4921 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005198/0.3533, allocations: 60.09 kB / 0.4921 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.3534, allocations: 43.98 kB / 0.4922 GB, free: 10.07 MB / 394.7 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.0003093/0.3537, allocations: 225.6 kB / 0.4924 GB, free: 9.844 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.3541, allocations: 67.34 kB / 0.4924 GB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002307/0.3564, allocations: 1.288 MB / 0.4937 GB, free: 8.449 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.3564, allocations: 15.92 kB / 0.4937 GB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.3564, allocations: 0 / 0.4937 GB, free: 8.434 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001719/0.3581, allocations: 1.328 MB / 0.495 GB, free: 6.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00303/0.3612, allocations: 1.963 MB / 0.4969 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3612, allocations: 0 / 0.4969 GB, free: 4.949 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.3619, allocations: 167.8 kB / 0.4971 GB, free: 4.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001732/0.3637, allocations: 301.1 kB / 0.4974 GB, free: 4.484 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.08e-05/0.3638, allocations: 27.98 kB / 0.4974 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007756/0.3645, allocations: 1.289 MB / 0.4987 GB, free: 3.121 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3646, allocations: 8.016 kB / 0.4987 GB, free: 3.113 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.367, allocations: 1.405 MB / 0.5 GB, free: 1.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.3672, allocations: 140.5 kB / 0.5002 GB, free: 1.523 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3673, allocations: 31.92 kB / 0.5002 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005926/0.3679, allocations: 55.81 kB / 0.5003 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.306e-05/0.368, allocations: 52.92 kB / 0.5003 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-05/0.3681, allocations: 43.97 kB / 0.5004 GB, free: 1.344 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003144/0.3684, allocations: 279 kB / 0.5006 GB, free: 1.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3684, allocations: 0 / 0.5006 GB, free: 1.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.1412/0.5097, allocations: 1.377 MB / 0.502 GB, free: 129.2 MB / 394.7 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.004575/0.5143, allocations: 1.595 MB / 0.5035 GB, free: 129.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002066/0.5164, allocations: 1.154 MB / 0.5047 GB, free: 128.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.5164, allocations: 1.062 kB / 0.5047 GB, free: 128.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008351/0.5172, allocations: 493.8 kB / 0.5051 GB, free: 128.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.5191, allocations: 372.6 kB / 0.5055 GB, free: 128.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.5216, allocations: 2.027 MB / 0.5075 GB, free: 127.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.5219, allocations: 0.9143 MB / 0.5083 GB, free: 127.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.5222, allocations: 91.38 kB / 0.5084 GB, free: 127.1 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5222, allocations: 1.25 kB / 0.5084 GB, free: 127.1 MB / 394.7 MB Notification: Performance of Templates: time 0.04177/0.564, allocations: 41.8 MB / 0.5493 GB, free: 90.38 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches