Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.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.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir") translateModel(Modelica.Media.Examples.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009547/0.0009547, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.222/1.222, allocations: 226.6 MB / 244.3 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007495/0.0007495, allocations: 103.1 kB / 296.4 MB, free: 6.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001841/0.0001841, allocations: 7.938 kB / 356.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1688, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MoistAir): time 0.2789/0.4477, allocations: 137.5 MB / 0.5322 GB, free: 13.42 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001281/0.449, allocations: 1.479 MB / 0.5336 GB, free: 13.32 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.806e-05/0.4491, allocations: 3.312 kB / 0.5336 GB, free: 13.32 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002176/0.4493, allocations: 40.08 kB / 0.5336 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002688/0.4496, allocations: 140.6 kB / 0.5338 GB, free: 13.27 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001966/0.4516, allocations: 0.7748 MB / 0.5345 GB, free: 13.14 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000347/0.4519, allocations: 405.5 kB / 0.5349 GB, free: 13.08 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.022e-05/0.452, allocations: 7.609 kB / 0.5349 GB, free: 13.08 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.4522, allocations: 134.2 kB / 0.5351 GB, free: 13.05 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.4524, allocations: 129.5 kB / 0.5352 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.4524, allocations: 10.22 kB / 0.5352 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001697/0.4541, allocations: 1.332 MB / 0.5365 GB, free: 12.97 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 7.144e-05/0.4542, allocations: 67.11 kB / 0.5366 GB, free: 12.96 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 5.266e-05/0.4542, allocations: 57.67 kB / 0.5366 GB, free: 12.93 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000682/0.4549, allocations: 0.6508 MB / 0.5373 GB, free: 12.87 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.4549, allocations: 0 / 0.5373 GB, free: 12.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4549, allocations: 0 / 0.5373 GB, free: 12.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.455, allocations: 0 / 0.5373 GB, free: 12.87 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001478/0.4564, allocations: 0.6412 MB / 0.5379 GB, free: 12.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.4565, allocations: 8.281 kB / 0.5379 GB, free: 12.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.4566, allocations: 21.5 kB / 0.5379 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.4568, allocations: 215.2 kB / 0.5381 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.4568, allocations: 12.25 kB / 0.5381 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.723e-05/0.4569, allocations: 19.91 kB / 0.5381 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.4574, allocations: 264.3 kB / 0.5384 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4574, allocations: 1.75 kB / 0.5384 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.9e-05/0.4574, allocations: 6.297 kB / 0.5384 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.4574, allocations: 5.656 kB / 0.5384 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005596/0.458, allocations: 276.8 kB / 0.5387 GB, free: 12.08 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.4592, allocations: 0.7793 MB / 0.5394 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005381/0.4598, allocations: 220.8 kB / 0.5396 GB, free: 11.4 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.4601, allocations: 136.5 kB / 0.5398 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/0.4604, allocations: 356 kB / 0.5401 GB, free: 10.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.834e-05/0.4604, allocations: 48.59 kB / 0.5402 GB, free: 10.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.4604, allocations: 0 / 0.5402 GB, free: 10.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.002158/0.4626, allocations: 0.6669 MB / 0.5408 GB, free: 10.74 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.178e-05/0.4626, allocations: 86.88 kB / 0.5409 GB, free: 10.64 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.458e-05/0.4627, allocations: 119.4 kB / 0.541 GB, free: 10.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.4628, allocations: 31.7 kB / 0.541 GB, free: 10.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.4628, allocations: 107 kB / 0.5411 GB, free: 10.4 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.019e-05/0.4629, allocations: 131.7 kB / 0.5413 GB, free: 10.31 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.4629, allocations: 3.25 kB / 0.5413 GB, free: 10.31 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.463, allocations: 326.3 kB / 0.5416 GB, free: 9.992 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003277/0.4634, allocations: 132.7 kB / 0.5417 GB, free: 9.965 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003591/0.4638, allocations: 211.5 kB / 0.5419 GB, free: 9.852 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003422/0.4641, allocations: 154.8 kB / 0.5421 GB, free: 9.828 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.4641, allocations: 0 / 0.5421 GB, free: 9.828 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008121/0.4649, allocations: 415.2 kB / 0.5424 GB, free: 9.715 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.465, allocations: 4.594 kB / 0.5425 GB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.465, allocations: 7.188 kB / 0.5425 GB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.465, allocations: 2.906 kB / 0.5425 GB, free: 9.715 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.4654, allocations: 82.91 kB / 0.5425 GB, free: 9.695 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.4654, allocations: 4.625 kB / 0.5425 GB, free: 9.695 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.4658, allocations: 36.66 kB / 0.5426 GB, free: 9.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.111e-05/0.4658, allocations: 13.47 kB / 0.5426 GB, free: 9.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.4659, allocations: 152.1 kB / 0.5427 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.54e-05/0.466, allocations: 16.03 kB / 0.5428 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003167/0.4663, allocations: 173.6 kB / 0.5429 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.4663, allocations: 2.906 kB / 0.5429 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.4664, allocations: 2.844 kB / 0.5429 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.341e-06/0.4664, allocations: 0 / 0.5429 GB, free: 9.469 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001425/0.4678, allocations: 0.764 MB / 0.5437 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4678, allocations: 3.344 kB / 0.5437 GB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/0.4682, allocations: 75.98 kB / 0.5437 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.4682, allocations: 2.906 kB / 0.5438 GB, free: 8.961 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/0.4683, allocations: 16.97 kB / 0.5438 GB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4683, allocations: 2.719 kB / 0.5438 GB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.4683, allocations: 3 kB / 0.5438 GB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.4695, allocations: 0.7046 MB / 0.5445 GB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.4696, allocations: 114.5 kB / 0.5446 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.4696, allocations: 17.22 kB / 0.5446 GB, free: 8.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003584/0.47, allocations: 26.11 kB / 0.5446 GB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.47, allocations: 30.86 kB / 0.5446 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.4701, allocations: 18.11 kB / 0.5447 GB, free: 8.453 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.693e-05/0.4701, allocations: 90.2 kB / 0.5447 GB, free: 8.375 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4701, allocations: 0 / 0.5447 GB, free: 8.375 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004931/0.4706, allocations: 145.8 kB / 0.5449 GB, free: 8.355 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,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 (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003932/0.471, allocations: 242.8 kB / 0.5451 GB, free: 8.211 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007429/0.4718, allocations: 333.9 kB / 0.5454 GB, free: 8.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4718, allocations: 2.969 kB / 0.5454 GB, free: 8.145 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003472/0.4721, allocations: 181 kB / 0.5456 GB, free: 8.105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006397/0.4728, allocations: 99.2 kB / 0.5457 GB, free: 8.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.4741, allocations: 0.7684 MB / 0.5465 GB, free: 7.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000257/0.4743, allocations: 0.7328 MB / 0.5472 GB, free: 6.805 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000148/0.4745, allocations: 38.19 kB / 0.5472 GB, free: 6.793 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4745, allocations: 0 / 0.5472 GB, free: 6.793 MB / 394.7 MB Notification: Performance of Templates: time 0.005691/0.4802, allocations: 4.464 MB / 0.5516 GB, free: 4.488 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/MoistAir/MoistAir.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.MoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches