Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001435/0.001435, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 226.5 MB / 244.7 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008301/0.00083, allocations: 106.7 kB / 296.8 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002111/0.0002112, allocations: 4 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1881, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir1): time 0.03549/0.2236, allocations: 46.81 MB / 454.9 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.2285, allocations: 4.845 MB / 459.7 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002515/0.2288, allocations: 0 / 459.7 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005956/0.2294, allocations: 210.9 kB / 459.9 MB, free: 7.719 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005581/0.23, allocations: 342.2 kB / 460.2 MB, free: 7.383 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01303/0.243, allocations: 5.599 MB / 465.8 MB, free: 1.797 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001272/0.2443, allocations: 1.329 MB / 467.2 MB, free: 476 kB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.2445, allocations: 118.1 kB / 467.3 MB, free: 352 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008581/0.2531, allocations: 6.182 MB / 473.5 MB, free: 10.16 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.2537, allocations: 398.6 kB / 473.9 MB, free: 9.766 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.356e-05/0.2537, allocations: 24 kB / 473.9 MB, free: 9.742 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.2691, allocations: 9.757 MB / 483.6 MB, free: 15.97 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002813/0.2694, allocations: 195.4 kB / 483.8 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003694/0.2698, allocations: 288.7 kB / 484.1 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006519/0.2763, allocations: 3.762 MB / 487.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2763, allocations: 3.938 kB / 487.9 MB, free: 11.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.2763, allocations: 4 kB / 487.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.2763, allocations: 0 / 487.9 MB, free: 11.71 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.003653/0.28, allocations: 1.256 MB / 489.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.2801, allocations: 8.031 kB / 489.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000407/0.2805, allocations: 63.42 kB / 489.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000561/0.281, allocations: 362.1 kB / 489.6 MB, free: 9.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.2811, allocations: 33 kB / 489.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.742e-05/0.2812, allocations: 40 kB / 489.6 MB, free: 9.875 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.2829, allocations: 0.5843 MB / 490.2 MB, free: 9.285 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.2829, allocations: 3.906 kB / 490.2 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.143e-05/0.283, allocations: 16 kB / 490.2 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.283, allocations: 12 kB / 490.2 MB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001894/0.2849, allocations: 0.7456 MB / 491 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01846/0.3034, allocations: 12.01 MB / 0.4912 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.305, allocations: 0.5314 MB / 0.4917 GB, free: 9.891 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005047/0.3056, allocations: 248.5 kB / 0.492 GB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1809/0.4865, allocations: 11.94 MB / 0.5036 GB, free: 92.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.981e-05/0.4865, allocations: 43.61 kB / 0.5037 GB, free: 92.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.4866, allocations: 1.094 kB / 0.5037 GB, free: 92.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=55): time 0.005746/0.4923, allocations: 2.138 MB / 0.5058 GB, free: 91.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.521e-05/0.4924, allocations: 59.61 kB / 0.5058 GB, free: 91.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003489/0.4927, allocations: 319.3 kB / 0.5061 GB, free: 91.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.4928, allocations: 37.7 kB / 0.5062 GB, free: 91.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.4929, allocations: 195.7 kB / 0.5063 GB, free: 91.49 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.493, allocations: 194.4 kB / 0.5065 GB, free: 91.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.211e-05/0.493, allocations: 9.406 kB / 0.5065 GB, free: 91.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.646e-05/0.4931, allocations: 347.7 kB / 0.5069 GB, free: 91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003535/0.4935, allocations: 238.1 kB / 0.5071 GB, free: 90.92 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005773/0.4941, allocations: 340.3 kB / 0.5074 GB, free: 90.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009726/0.495, allocations: 0.5991 MB / 0.508 GB, free: 90.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.495, allocations: 1.406 kB / 0.508 GB, free: 90.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001484/0.4965, allocations: 0.7505 MB / 0.5087 GB, free: 90.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.4966, allocations: 7.531 kB / 0.5087 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.4966, allocations: 0 / 0.5087 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000398/0.497, allocations: 108 kB / 0.5088 GB, free: 90.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004294/0.4974, allocations: 124.8 kB / 0.509 GB, free: 90.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.499, allocations: 3.272 MB / 0.5122 GB, free: 86.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/0.4993, allocations: 46.31 kB / 0.5122 GB, free: 86.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/0.4994, allocations: 29.83 kB / 0.5122 GB, free: 86.78 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {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.0002298/0.4997, allocations: 190.8 kB / 0.5124 GB, free: 86.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.4999, allocations: 46.02 kB / 0.5125 GB, free: 86.6 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00128/0.5012, allocations: 0.8212 MB / 0.5133 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.5012, allocations: 7.938 kB / 0.5133 GB, free: 86.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.5012, allocations: 7.938 kB / 0.5133 GB, free: 86.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009751/0.5022, allocations: 0.7588 MB / 0.514 GB, free: 85.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00166/0.5038, allocations: 1.302 MB / 0.5153 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.5039, allocations: 3.875 kB / 0.5153 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004532/0.5043, allocations: 91.34 kB / 0.5154 GB, free: 84.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008821/0.5052, allocations: 158.1 kB / 0.5155 GB, free: 84.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.5053, allocations: 21.75 kB / 0.5155 GB, free: 84.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002672/0.5055, allocations: 0.645 MB / 0.5162 GB, free: 84.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5056, allocations: 0 / 0.5162 GB, free: 84.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001302/0.5069, allocations: 0.9088 MB / 0.5171 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.571e-05/0.507, allocations: 127.5 kB / 0.5172 GB, free: 83.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.884e-05/0.507, allocations: 11.91 kB / 0.5172 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.5074, allocations: 37.61 kB / 0.5172 GB, free: 83.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.969e-05/0.5075, allocations: 36.25 kB / 0.5173 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-05/0.5075, allocations: 30.89 kB / 0.5173 GB, free: 83.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002057/0.5077, allocations: 251.8 kB / 0.5175 GB, free: 83.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5078, allocations: 3.938 kB / 0.5175 GB, free: 83.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00305/0.5108, allocations: 1.325 MB / 0.5188 GB, free: 83.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.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 (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004434/0.5153, allocations: 1.687 MB / 0.5205 GB, free: 82.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.5165, allocations: 0.8 MB / 0.5213 GB, free: 82.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5165, allocations: 0 / 0.5213 GB, free: 82.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004272/0.5169, allocations: 282.9 kB / 0.5215 GB, free: 81.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.5181, allocations: 273.9 kB / 0.5218 GB, free: 81.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.5196, allocations: 1.356 MB / 0.5231 GB, free: 80.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.5199, allocations: 0.8368 MB / 0.5239 GB, free: 79.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001781/0.52, allocations: 59.42 kB / 0.524 GB, free: 79.31 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5201, allocations: 4 kB / 0.524 GB, free: 79.3 MB / 378.7 MB Notification: Performance of Templates: time 0.03699/0.5571, allocations: 33.92 MB / 0.5571 GB, free: 45.38 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/MoistAir1/MoistAir1.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches