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.0008853/0.0008853, allocations: 197.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 226.6 MB / 244.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000683/0.000683, allocations: 94.77 kB / 296.4 MB, free: 6.797 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001899/0.00019, allocations: 4 kB / 356.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.1697, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.MoistAir2): time 0.04816/0.2179, allocations: 60.58 MB / 468.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005491/0.2234, allocations: 5.091 MB / 473.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004045/0.2238, allocations: 7.938 kB / 473.2 MB, free: 9.969 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007141/0.2245, allocations: 238.6 kB / 473.4 MB, free: 9.734 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008674/0.2254, allocations: 497.4 kB / 473.9 MB, free: 9.246 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01298/0.2384, allocations: 5.476 MB / 479.4 MB, free: 3.785 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00204/0.2405, allocations: 1.91 MB / 481.3 MB, free: 1.871 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.2408, allocations: 147.9 kB / 481.4 MB, free: 1.723 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009303/0.2417, allocations: 0.5333 MB / 482 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000832/0.2425, allocations: 0.5528 MB / 482.5 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.2427, allocations: 36 kB / 482.5 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01391/0.2566, allocations: 8.628 MB / 491.2 MB, free: 7.961 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.2571, allocations: 271.3 kB / 491.4 MB, free: 7.695 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002978/0.2574, allocations: 181.4 kB / 491.6 MB, free: 7.512 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005716/0.2631, allocations: 3.855 MB / 495.5 MB, free: 3.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2631, allocations: 0 / 495.5 MB, free: 3.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2631, allocations: 0 / 495.5 MB, free: 3.648 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.808e-05/0.2631, allocations: 0 / 495.5 MB, free: 3.648 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.003128/0.2663, allocations: 1.423 MB / 496.9 MB, free: 2.176 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.2663, allocations: 8.031 kB / 496.9 MB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003987/0.2667, allocations: 87.19 kB / 497 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005809/0.2673, allocations: 429 kB / 497.4 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.471e-05/0.2674, allocations: 45.31 kB / 497.4 MB, free: 1.578 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.2675, allocations: 67.91 kB / 497.5 MB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.2691, allocations: 0.8106 MB / 498.3 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.2691, allocations: 4 kB / 498.3 MB, free: 0.6875 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.17e-05/0.2692, allocations: 28 kB / 498.4 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.2692, allocations: 16 kB / 498.4 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.271, allocations: 1.02 MB / 499.4 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01598/0.287, allocations: 12.81 MB / 0.5002 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1395/0.4265, allocations: 0.7404 MB / 0.5009 GB, free: 96.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007658/0.4272, allocations: 408.3 kB / 0.5013 GB, free: 96.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01161/0.4389, allocations: 12.31 MB / 0.5133 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.4389, allocations: 46.41 kB / 0.5134 GB, free: 84.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 2.224e-06/0.4389, allocations: 0 / 0.5134 GB, free: 84.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=88): time 0.008183/0.4471, allocations: 3.414 MB / 0.5167 GB, free: 83.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.142e-05/0.4471, allocations: 60.34 kB / 0.5168 GB, free: 83.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.4474, allocations: 353.4 kB / 0.5171 GB, free: 82.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.606e-05/0.4475, allocations: 46.52 kB / 0.5171 GB, free: 82.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/0.4476, allocations: 242.5 kB / 0.5174 GB, free: 82.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.4477, allocations: 304.5 kB / 0.5177 GB, free: 82.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.4478, allocations: 16.38 kB / 0.5177 GB, free: 82.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.851e-05/0.4479, allocations: 364.7 kB / 0.518 GB, free: 82.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005674/0.4484, allocations: 370.9 kB / 0.5184 GB, free: 82.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007949/0.4492, allocations: 485.2 kB / 0.5189 GB, free: 81.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000811/0.45, allocations: 441.2 kB / 0.5193 GB, free: 81.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4501, allocations: 0 / 0.5193 GB, free: 81.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001985/0.452, allocations: 1.117 MB / 0.5204 GB, free: 80.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.811e-05/0.4521, allocations: 7.938 kB / 0.5204 GB, free: 80.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.4521, allocations: 0 / 0.5204 GB, free: 80.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006739/0.4528, allocations: 165.9 kB / 0.5205 GB, free: 80.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.4534, allocations: 190 kB / 0.5207 GB, free: 80.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/0.4551, allocations: 3.92 MB / 0.5245 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.4555, allocations: 58.97 kB / 0.5246 GB, free: 76.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/0.4556, allocations: 42.86 kB / 0.5246 GB, free: 76.85 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.0002323/0.4559, allocations: 230.2 kB / 0.5249 GB, free: 76.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.4561, allocations: 70.64 kB / 0.5249 GB, free: 76.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001871/0.458, allocations: 1.283 MB / 0.5262 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.458, allocations: 9.094 kB / 0.5262 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.4581, allocations: 4 kB / 0.5262 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001388/0.4594, allocations: 1.331 MB / 0.5275 GB, free: 74.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002342/0.4618, allocations: 1.969 MB / 0.5294 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.4618, allocations: 0 / 0.5294 GB, free: 73.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006283/0.4624, allocations: 167.8 kB / 0.5296 GB, free: 73.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001582/0.464, allocations: 297.1 kB / 0.5299 GB, free: 72.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.934e-05/0.4641, allocations: 23.98 kB / 0.5299 GB, free: 72.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004512/0.4646, allocations: 1.293 MB / 0.5311 GB, free: 71.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4646, allocations: 4.031 kB / 0.5311 GB, free: 71.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001919/0.4665, allocations: 1.415 MB / 0.5325 GB, free: 69.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.675e-05/0.4666, allocations: 136.5 kB / 0.5327 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.961e-05/0.4667, allocations: 24 kB / 0.5327 GB, free: 69.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005416/0.4672, allocations: 59.8 kB / 0.5327 GB, free: 69.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.483e-05/0.4673, allocations: 52.92 kB / 0.5328 GB, free: 69.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.824e-05/0.4674, allocations: 39.97 kB / 0.5328 GB, free: 69.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.4676, allocations: 279 kB / 0.5331 GB, free: 69.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4676, allocations: 4 kB / 0.5331 GB, free: 69.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002893/0.4705, allocations: 1.394 MB / 0.5345 GB, free: 68.11 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.003618/0.4741, allocations: 1.62 MB / 0.536 GB, free: 66.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.4756, allocations: 1.147 MB / 0.5372 GB, free: 65.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4757, allocations: 4 kB / 0.5372 GB, free: 65.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006723/0.4763, allocations: 479.3 kB / 0.5376 GB, free: 65.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.478, allocations: 377.5 kB / 0.538 GB, free: 64.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002127/0.4801, allocations: 2.039 MB / 0.54 GB, free: 62.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002803/0.4804, allocations: 0.9128 MB / 0.5409 GB, free: 61.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.4806, allocations: 91.39 kB / 0.5409 GB, free: 61.66 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4806, allocations: 0 / 0.5409 GB, free: 61.66 MB / 378.7 MB Notification: Performance of Templates: time 0.03841/0.5191, allocations: 40.79 MB / 0.5808 GB, free: 20.84 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