Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_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_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001006/0.001006, allocations: 196.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.6 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000727/0.000727, allocations: 94.28 kB / 296.8 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003206, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2186, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.04806/0.2667, allocations: 60.66 MB / 468.7 MB, free: 14.89 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005658/0.2724, allocations: 5.11 MB / 473.8 MB, free: 9.758 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003498/0.2728, allocations: 11.94 kB / 473.8 MB, free: 9.746 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007529/0.2735, allocations: 274.5 kB / 474.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007738/0.2743, allocations: 497.4 kB / 474.6 MB, free: 8.988 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01429/0.2886, allocations: 5.868 MB / 480.4 MB, free: 3.133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001984/0.2906, allocations: 1.91 MB / 482.4 MB, free: 1.219 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000286/0.2909, allocations: 169.4 kB / 482.5 MB, free: 1.051 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008195/0.2918, allocations: 0.5255 MB / 483 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006532/0.2924, allocations: 0.5528 MB / 483.6 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.652e-05/0.2925, allocations: 36 kB / 483.6 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01583/0.3084, allocations: 10.07 MB / 493.7 MB, free: 5.848 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004756/0.3089, allocations: 275.3 kB / 494 MB, free: 5.578 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.3095, allocations: 392.3 kB / 494.4 MB, free: 5.188 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007364/0.3169, allocations: 4.097 MB / 498.5 MB, free: 1.082 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3169, allocations: 0 / 498.5 MB, free: 1.082 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3169, allocations: 0 / 498.5 MB, free: 1.082 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.3169, allocations: 4 kB / 498.5 MB, free: 1.078 MB / 362.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.003479/0.3204, allocations: 1.404 MB / 499.9 MB, free: 15.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.3205, allocations: 12.03 kB / 499.9 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003798/0.3208, allocations: 83.23 kB / 500 MB, free: 15.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00056/0.3214, allocations: 444.8 kB / 0.4887 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.429e-05/0.3215, allocations: 49.3 kB / 0.4887 GB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.477e-05/0.3216, allocations: 63.91 kB / 0.4888 GB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001587/0.3231, allocations: 0.8146 MB / 0.4896 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.3232, allocations: 0 / 0.4896 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.927e-05/0.3233, allocations: 28 kB / 0.4896 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.3233, allocations: 12 kB / 0.4896 GB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.325, allocations: 1.024 MB / 0.4906 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1799/0.5049, allocations: 12.82 MB / 0.5031 GB, free: 94.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.5067, allocations: 0.755 MB / 0.5039 GB, free: 94.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005908/0.5073, allocations: 404.1 kB / 0.5042 GB, free: 94.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01136/0.5186, allocations: 12.3 MB / 0.5163 GB, free: 82.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.063e-05/0.5187, allocations: 43.16 kB / 0.5163 GB, free: 82.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 3.657e-06/0.5187, allocations: 4.594 kB / 0.5163 GB, free: 82.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.008996/0.5277, allocations: 3.413 MB / 0.5196 GB, free: 80.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/0.5278, allocations: 66.03 kB / 0.5197 GB, free: 80.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003963/0.5282, allocations: 358.8 kB / 0.52 GB, free: 80.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.5283, allocations: 43.64 kB / 0.5201 GB, free: 80.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.5284, allocations: 235.6 kB / 0.5203 GB, free: 80.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.5286, allocations: 309.3 kB / 0.5206 GB, free: 79.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.193e-05/0.5287, allocations: 16.12 kB / 0.5206 GB, free: 79.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.923e-05/0.5287, allocations: 363.2 kB / 0.521 GB, free: 79.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005406/0.5293, allocations: 369.7 kB / 0.5213 GB, free: 79.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007258/0.53, allocations: 489.6 kB / 0.5218 GB, free: 79.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001392/0.5314, allocations: 0.8902 MB / 0.5227 GB, free: 78.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5314, allocations: 0 / 0.5227 GB, free: 78.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.002181/0.5336, allocations: 1.12 MB / 0.5237 GB, free: 77.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.5337, allocations: 10.97 kB / 0.5238 GB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.5337, allocations: 0 / 0.5238 GB, free: 77.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007305/0.5344, allocations: 157.8 kB / 0.5239 GB, free: 77.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006872/0.5351, allocations: 197 kB / 0.5241 GB, free: 77.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001904/0.537, allocations: 3.922 MB / 0.5279 GB, free: 73.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005235/0.5376, allocations: 64.22 kB / 0.528 GB, free: 73.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.921e-05/0.5377, allocations: 44.36 kB / 0.528 GB, free: 73.8 MB / 378.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.0003211/0.538, allocations: 228 kB / 0.5282 GB, free: 73.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003399/0.5383, allocations: 64.28 kB / 0.5283 GB, free: 73.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.5403, allocations: 1.28 MB / 0.5296 GB, free: 72.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.5403, allocations: 8.438 kB / 0.5296 GB, free: 72.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.5403, allocations: 3.938 kB / 0.5296 GB, free: 72.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001398/0.5417, allocations: 1.32 MB / 0.5309 GB, free: 71.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002612/0.5443, allocations: 1.977 MB / 0.5328 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5443, allocations: 4 kB / 0.5328 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006345/0.545, allocations: 159.8 kB / 0.5329 GB, free: 69.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.5465, allocations: 292.4 kB / 0.5332 GB, free: 69.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.885e-05/0.5466, allocations: 35.98 kB / 0.5333 GB, free: 69.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004756/0.5471, allocations: 1.285 MB / 0.5345 GB, free: 67.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5471, allocations: 0 / 0.5345 GB, free: 67.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002007/0.5491, allocations: 1.417 MB / 0.5359 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001452/0.5493, allocations: 144.4 kB / 0.536 GB, free: 66.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.862e-05/0.5494, allocations: 20 kB / 0.5361 GB, free: 66.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005351/0.5499, allocations: 51.89 kB / 0.5361 GB, free: 66.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.956e-05/0.55, allocations: 56.92 kB / 0.5362 GB, free: 66.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-05/0.5501, allocations: 44.09 kB / 0.5362 GB, free: 66.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002355/0.5503, allocations: 275 kB / 0.5365 GB, free: 65.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5503, allocations: 4 kB / 0.5365 GB, free: 65.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003471/0.5538, allocations: 1.41 MB / 0.5378 GB, free: 64.54 MB / 378.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.005293/0.5591, allocations: 1.737 MB / 0.5395 GB, free: 63.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.5609, allocations: 1.146 MB / 0.5407 GB, free: 61.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5609, allocations: 4 kB / 0.5407 GB, free: 61.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007269/0.5616, allocations: 491.5 kB / 0.5411 GB, free: 61.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.5633, allocations: 382.4 kB / 0.5415 GB, free: 61.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002271/0.5656, allocations: 2.032 MB / 0.5435 GB, free: 58.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.5659, allocations: 0.9167 MB / 0.5444 GB, free: 58.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.5661, allocations: 95.34 kB / 0.5445 GB, free: 57.95 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5661, allocations: 0 / 0.5445 GB, free: 57.95 MB / 378.7 MB Notification: Performance of Templates: time 0.03991/0.606, allocations: 40.85 MB / 0.5844 GB, free: 17.07 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches