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.001604/0.001604, allocations: 191.7 kB / 17.37 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 226.6 MB / 244.7 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007072/0.0007073, allocations: 100.2 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001954/0.0001955, allocations: 4 kB / 356.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1775, allocations: 51.3 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.MoistAir): time 0.3064/0.484, allocations: 137.5 MB / 0.5327 GB, free: 13.39 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.4852, allocations: 1.47 MB / 0.5341 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.134e-05/0.4853, allocations: 0 / 0.5341 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002843/0.4856, allocations: 60.33 kB / 0.5342 GB, free: 13.28 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002871/0.4859, allocations: 132.9 kB / 0.5343 GB, free: 13.25 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002425/0.4883, allocations: 0.8809 MB / 0.5352 GB, free: 13.09 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000524/0.4889, allocations: 400.1 kB / 0.5356 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.743e-05/0.4889, allocations: 8.328 kB / 0.5356 GB, free: 13.04 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002446/0.4892, allocations: 137.3 kB / 0.5357 GB, free: 13.01 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.4894, allocations: 128.2 kB / 0.5358 GB, free: 13 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.83e-05/0.4894, allocations: 12.25 kB / 0.5358 GB, free: 12.99 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002708/0.4922, allocations: 1.661 MB / 0.5375 GB, free: 12.89 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.4923, allocations: 67.2 kB / 0.5375 GB, free: 12.89 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.4924, allocations: 114 kB / 0.5376 GB, free: 12.84 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.4936, allocations: 0.6944 MB / 0.5383 GB, free: 12.79 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.4936, allocations: 1.859 kB / 0.5383 GB, free: 12.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.4936, allocations: 4 kB / 0.5383 GB, free: 12.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.4936, allocations: 3.938 kB / 0.5383 GB, free: 12.79 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.001566/0.4952, allocations: 0.6412 MB / 0.5389 GB, free: 12.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.4953, allocations: 10.72 kB / 0.539 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.4954, allocations: 23.48 kB / 0.539 GB, free: 12.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.4956, allocations: 218.3 kB / 0.5392 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.395e-05/0.4956, allocations: 12.36 kB / 0.5392 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.4957, allocations: 18.2 kB / 0.5392 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004789/0.4962, allocations: 261.6 kB / 0.5395 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.4962, allocations: 0 / 0.5395 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.4962, allocations: 6.5 kB / 0.5395 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.4963, allocations: 9.797 kB / 0.5395 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.4968, allocations: 270.4 kB / 0.5397 GB, free: 11.85 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.001228/0.498, allocations: 0.779 MB / 0.5405 GB, free: 11.26 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005516/0.4986, allocations: 219.1 kB / 0.5407 GB, free: 11.17 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002689/0.4989, allocations: 132.3 kB / 0.5408 GB, free: 11.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002821/0.4992, allocations: 361.9 kB / 0.5412 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.4992, allocations: 36.94 kB / 0.5412 GB, free: 10.7 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.114e-06/0.4992, allocations: 0 / 0.5412 GB, free: 10.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=36): time 0.002131/0.5014, allocations: 0.67 MB / 0.5419 GB, free: 10.52 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.5014, allocations: 87.17 kB / 0.542 GB, free: 10.42 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.053e-05/0.5015, allocations: 128.9 kB / 0.5421 GB, free: 10.31 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.5016, allocations: 32.08 kB / 0.5421 GB, free: 10.28 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.313e-05/0.5016, allocations: 106.4 kB / 0.5422 GB, free: 10.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.427e-05/0.5017, allocations: 126.4 kB / 0.5423 GB, free: 10.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.5017, allocations: 6.25 kB / 0.5423 GB, free: 10.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.5018, allocations: 326.5 kB / 0.5426 GB, free: 9.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003254/0.5022, allocations: 134.3 kB / 0.5428 GB, free: 9.742 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/0.5026, allocations: 205.8 kB / 0.543 GB, free: 9.633 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007036/0.5033, allocations: 360.5 kB / 0.5433 GB, free: 9.512 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5033, allocations: 4.656 kB / 0.5433 GB, free: 9.512 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008329/0.5041, allocations: 402.6 kB / 0.5437 GB, free: 9.402 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.5041, allocations: 5.938 kB / 0.5437 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.5042, allocations: 2.781 kB / 0.5437 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.5042, allocations: 2.5 kB / 0.5437 GB, free: 9.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.5047, allocations: 97.16 kB / 0.5438 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.5047, allocations: 10.84 kB / 0.5438 GB, free: 9.367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003099/0.505, allocations: 27.86 kB / 0.5438 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.014e-05/0.505, allocations: 21.83 kB / 0.5439 GB, free: 9.352 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.0001363/0.5052, allocations: 141.2 kB / 0.544 GB, free: 9.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.813e-05/0.5053, allocations: 19.34 kB / 0.544 GB, free: 9.219 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/0.5056, allocations: 180.4 kB / 0.5442 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.5056, allocations: 2.906 kB / 0.5442 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.5056, allocations: 2.938 kB / 0.5442 GB, free: 9.141 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.5057, allocations: 3.984 kB / 0.5442 GB, free: 9.137 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.5072, allocations: 0.7553 MB / 0.5449 GB, free: 8.652 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.5072, allocations: 7.094 kB / 0.5449 GB, free: 8.648 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004146/0.5076, allocations: 77.27 kB / 0.545 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.5076, allocations: 2.875 kB / 0.545 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.5077, allocations: 15.61 kB / 0.545 GB, free: 8.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.5077, allocations: 6.625 kB / 0.545 GB, free: 8.621 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5077, allocations: 0 / 0.545 GB, free: 8.621 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.5089, allocations: 0.7085 MB / 0.5457 GB, free: 8.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001297/0.5091, allocations: 118.3 kB / 0.5458 GB, free: 8.152 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.985e-05/0.5091, allocations: 11.86 kB / 0.5459 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003426/0.5094, allocations: 20.05 kB / 0.5459 GB, free: 8.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.5095, allocations: 28.8 kB / 0.5459 GB, free: 8.133 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.259e-05/0.5095, allocations: 17.86 kB / 0.5459 GB, free: 8.129 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.593e-05/0.5096, allocations: 95.23 kB / 0.546 GB, free: 8.051 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5096, allocations: 0 / 0.546 GB, free: 8.051 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005801/0.5102, allocations: 143.9 kB / 0.5461 GB, free: 8.031 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.0004883/0.5107, allocations: 244.1 kB / 0.5464 GB, free: 7.887 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007628/0.5115, allocations: 337.8 kB / 0.5467 GB, free: 7.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5115, allocations: 2.781 kB / 0.5467 GB, free: 7.816 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.5118, allocations: 177.3 kB / 0.5469 GB, free: 7.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.5125, allocations: 93.88 kB / 0.547 GB, free: 7.746 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.5138, allocations: 0.7805 MB / 0.5477 GB, free: 7.188 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.5141, allocations: 0.7384 MB / 0.5484 GB, free: 6.469 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.5143, allocations: 33.52 kB / 0.5485 GB, free: 6.457 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.5143, allocations: 0 / 0.5485 GB, free: 6.457 MB / 394.7 MB Notification: Performance of Templates: time 0.006035/0.5203, allocations: 4.469 MB / 0.5528 GB, free: 4.152 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