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.0009466/0.0009466, allocations: 175.5 kB / 16.72 MB, free: 5.078 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.244/1.244, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0009473/0.0009477, allocations: 93.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00032/0.00032, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2238, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.04817/0.2721, allocations: 60.76 MB / 435.8 MB, free: 3.82 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006621/0.2787, allocations: 5.114 MB / 441 MB, free: 14.69 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005611/0.2793, allocations: 8 kB / 441 MB, free: 14.68 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008997/0.2803, allocations: 274.5 kB / 441.2 MB, free: 14.41 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009228/0.2812, allocations: 497.4 kB / 441.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0151/0.2963, allocations: 5.595 MB / 447.3 MB, free: 8.328 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002143/0.2985, allocations: 1.914 MB / 449.2 MB, free: 6.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.2988, allocations: 167.1 kB / 449.4 MB, free: 6.242 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009079/0.2997, allocations: 0.5294 MB / 449.9 MB, free: 5.711 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006833/0.3004, allocations: 0.5489 MB / 450.5 MB, free: 5.16 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.835e-05/0.3005, allocations: 36 kB / 450.5 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01694/0.3174, allocations: 9.958 MB / 460.5 MB, free: 11.15 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005514/0.318, allocations: 267.3 kB / 460.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006331/0.3187, allocations: 400.3 kB / 461.1 MB, free: 10.49 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009183/0.3279, allocations: 4.062 MB / 465.2 MB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.3279, allocations: 0 / 465.2 MB, free: 6.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3279, allocations: 3.938 kB / 465.2 MB, free: 6.418 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.328, allocations: 7.938 kB / 465.2 MB, free: 6.41 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.004096/0.3321, allocations: 1.396 MB / 466.6 MB, free: 4.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.3321, allocations: 12.03 kB / 466.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004076/0.3325, allocations: 83.23 kB / 466.7 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006337/0.3332, allocations: 440.8 kB / 467.1 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.3332, allocations: 49.31 kB / 467.2 MB, free: 4.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-05/0.3333, allocations: 60 kB / 467.2 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001721/0.3351, allocations: 0.8068 MB / 468 MB, free: 3.477 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.3351, allocations: 3.906 kB / 468 MB, free: 3.473 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-05/0.3352, allocations: 28 kB / 468.1 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.469e-05/0.3352, allocations: 12 kB / 468.1 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.337, allocations: 1.024 MB / 469.1 MB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01714/0.3542, allocations: 12.83 MB / 481.9 MB, free: 3.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.3559, allocations: 0.7551 MB / 482.7 MB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000568/0.3565, allocations: 422 kB / 483.1 MB, free: 2.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.3707, allocations: 12.3 MB / 495.4 MB, free: 3.578 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.3708, allocations: 47.22 kB / 495.4 MB, free: 3.523 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 3.055e-06/0.3708, allocations: 0 / 495.4 MB, free: 3.523 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.0092/0.38, allocations: 3.416 MB / 498.8 MB, free: 12 kB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.3801, allocations: 60.41 kB / 498.9 MB, free: 15.94 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004024/0.3805, allocations: 352.5 kB / 499.3 MB, free: 15.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.417e-05/0.3806, allocations: 41.7 kB / 499.3 MB, free: 15.55 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.3808, allocations: 244.6 kB / 499.5 MB, free: 15.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.381, allocations: 303.6 kB / 499.8 MB, free: 15 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.59e-05/0.3811, allocations: 20 kB / 499.8 MB, free: 14.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.3812, allocations: 362.8 kB / 0.4885 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005813/0.3818, allocations: 369.8 kB / 0.4888 GB, free: 14.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008461/0.3827, allocations: 492.2 kB / 0.4893 GB, free: 13.74 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001588/0.3843, allocations: 0.8864 MB / 0.4902 GB, free: 12.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.3843, allocations: 4 kB / 0.4902 GB, free: 12.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002439/0.3867, allocations: 1.113 MB / 0.4913 GB, free: 11.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3868, allocations: 11.94 kB / 0.4913 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3868, allocations: 4 kB / 0.4913 GB, free: 11.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007854/0.3876, allocations: 163.2 kB / 0.4914 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007241/0.3883, allocations: 195.8 kB / 0.4916 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.3911, allocations: 3.908 MB / 0.4954 GB, free: 7.086 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005746/0.3917, allocations: 63.98 kB / 0.4955 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.404e-05/0.3918, allocations: 43.98 kB / 0.4955 GB, free: 6.98 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.0003893/0.3922, allocations: 233.6 kB / 0.4958 GB, free: 6.742 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003286/0.3926, allocations: 71.22 kB / 0.4958 GB, free: 6.672 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00228/0.3948, allocations: 1.269 MB / 0.4971 GB, free: 5.363 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.3949, allocations: 8 kB / 0.4971 GB, free: 5.355 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.3949, allocations: 0 / 0.4971 GB, free: 5.355 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00177/0.3967, allocations: 1.331 MB / 0.4984 GB, free: 3.898 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003165/0.3998, allocations: 1.975 MB / 0.5003 GB, free: 1.852 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.3999, allocations: 0 / 0.5003 GB, free: 1.852 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006831/0.4005, allocations: 155.8 kB / 0.5004 GB, free: 1.699 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001671/0.4022, allocations: 301.2 kB / 0.5007 GB, free: 1.398 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.261e-05/0.4023, allocations: 31.98 kB / 0.5008 GB, free: 1.367 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000796/0.4031, allocations: 1.289 MB / 0.502 GB, free: 32 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4031, allocations: 4.031 kB / 0.502 GB, free: 28 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1623/0.5654, allocations: 1.407 MB / 0.5034 GB, free: 129.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.5657, allocations: 140.9 kB / 0.5035 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.5658, allocations: 25.94 kB / 0.5036 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006307/0.5664, allocations: 55.92 kB / 0.5036 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.486e-05/0.5665, allocations: 54.91 kB / 0.5037 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.5667, allocations: 42.84 kB / 0.5037 GB, free: 129.1 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003247/0.567, allocations: 278.1 kB / 0.504 GB, free: 129 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.567, allocations: 2.344 kB / 0.504 GB, free: 129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004383/0.5714, allocations: 1.391 MB / 0.5053 GB, free: 128.9 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.005881/0.5773, allocations: 1.741 MB / 0.507 GB, free: 128.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002178/0.5795, allocations: 1.146 MB / 0.5082 GB, free: 128.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.471e-06/0.5795, allocations: 5.062 kB / 0.5082 GB, free: 128.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008652/0.5804, allocations: 488.4 kB / 0.5086 GB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00187/0.5823, allocations: 378 kB / 0.509 GB, free: 128 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.5849, allocations: 2.033 MB / 0.511 GB, free: 126.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.5852, allocations: 0.9156 MB / 0.5119 GB, free: 126.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/0.5855, allocations: 90.75 kB / 0.5119 GB, free: 126.2 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5855, allocations: 0 / 0.5119 GB, free: 126.2 MB / 394.7 MB Notification: Performance of Templates: time 0.04402/0.6296, allocations: 41.88 MB / 0.5528 GB, free: 87.12 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