Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.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.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O") translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009586/0.0009586, allocations: 196.2 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.187/1.187, allocations: 226.6 MB / 244.3 MB, free: 8.316 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007608/0.0007608, allocations: 93.89 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002335/0.0002336, allocations: 4 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1916, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.2973/0.4889, allocations: 135.4 MB / 0.5301 GB, free: 13.46 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.4909, allocations: 2.322 MB / 0.5324 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.915e-05/0.491, allocations: 3.25 kB / 0.5324 GB, free: 13.31 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.4911, allocations: 19.67 kB / 0.5324 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005965/0.4917, allocations: 254.3 kB / 0.5327 GB, free: 13.24 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.4918, allocations: 49.7 kB / 0.5327 GB, free: 13.23 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.417e-05/0.4919, allocations: 71.56 kB / 0.5328 GB, free: 13.2 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.156e-05/0.492, allocations: 3.062 kB / 0.5328 GB, free: 13.2 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.393e-05/0.492, allocations: 36.06 kB / 0.5328 GB, free: 13.19 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.454e-05/0.4921, allocations: 27.2 kB / 0.5328 GB, free: 13.19 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-06/0.4921, allocations: 0 / 0.5328 GB, free: 13.19 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005269/0.4927, allocations: 365 kB / 0.5332 GB, free: 13.17 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 1.058e-05/0.4927, allocations: 5.938 kB / 0.5332 GB, free: 13.17 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 2.3e-05/0.4927, allocations: 38.73 kB / 0.5332 GB, free: 13.13 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.493, allocations: 214.2 kB / 0.5334 GB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.493, allocations: 3.812 kB / 0.5334 GB, free: 13.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.493, allocations: 0 / 0.5334 GB, free: 13.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.4931, allocations: 4.5 kB / 0.5334 GB, free: 13.11 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007613/0.4938, allocations: 425.1 kB / 0.5339 GB, free: 12.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.4939, allocations: 9.094 kB / 0.5339 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005528/0.4994, allocations: 457 kB / 0.5343 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.4995, allocations: 159.1 kB / 0.5344 GB, free: 12.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.4995, allocations: 13 kB / 0.5345 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.606e-05/0.4996, allocations: 16.69 kB / 0.5345 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006443/0.5003, allocations: 293.4 kB / 0.5348 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.5003, allocations: 0 / 0.5348 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.559e-05/0.5003, allocations: 3.812 kB / 0.5348 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5004, allocations: 3.281 kB / 0.5348 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007036/0.5011, allocations: 271.9 kB / 0.535 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008814/0.502, allocations: 432.3 kB / 0.5354 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008953/0.5029, allocations: 208.2 kB / 0.5356 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.503, allocations: 69.84 kB / 0.5357 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.5031, allocations: 2.719 kB / 0.5357 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.671e-05/0.5031, allocations: 34.25 kB / 0.5357 GB, free: 12.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.362e-06/0.5031, allocations: 0 / 0.5357 GB, free: 12.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.001505/0.5046, allocations: 420.5 kB / 0.5361 GB, free: 12.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.5047, allocations: 57.91 kB / 0.5362 GB, free: 11.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.026e-05/0.5047, allocations: 101.4 kB / 0.5363 GB, free: 11.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.5048, allocations: 28.77 kB / 0.5363 GB, free: 11.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.946e-05/0.5048, allocations: 97.38 kB / 0.5364 GB, free: 11.76 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.629e-05/0.5049, allocations: 62.05 kB / 0.5365 GB, free: 11.72 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.686e-05/0.5049, allocations: 6.156 kB / 0.5365 GB, free: 11.72 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.505, allocations: 315.8 kB / 0.5368 GB, free: 11.41 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002316/0.5052, allocations: 85.09 kB / 0.5369 GB, free: 11.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002482/0.5055, allocations: 120.2 kB / 0.537 GB, free: 11.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.5058, allocations: 87.28 kB / 0.5371 GB, free: 11.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.5058, allocations: 0 / 0.5371 GB, free: 11.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005564/0.5063, allocations: 248.3 kB / 0.5373 GB, free: 11.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.5063, allocations: 5.75 kB / 0.5373 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.5064, allocations: 4.547 kB / 0.5373 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.5064, allocations: 2.156 kB / 0.5373 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003446/0.5067, allocations: 50.52 kB / 0.5374 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.5067, allocations: 2.062 kB / 0.5374 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002413/0.507, allocations: 16.72 kB / 0.5374 GB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.507, allocations: 15.56 kB / 0.5374 GB, free: 11.29 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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.0001011/0.5071, allocations: 125.1 kB / 0.5375 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.249e-05/0.5072, allocations: 18.47 kB / 0.5375 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007223/0.5079, allocations: 277.1 kB / 0.5378 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.5079, allocations: 0 / 0.5378 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.5079, allocations: 0 / 0.5378 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.5079, allocations: 1.719 kB / 0.5378 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.509, allocations: 0.5884 MB / 0.5384 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.509, allocations: 0 / 0.5384 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003154/0.5093, allocations: 49.83 kB / 0.5384 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.5094, allocations: 2.438 kB / 0.5384 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.5094, allocations: 6.5 kB / 0.5384 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.5094, allocations: 5.625 kB / 0.5384 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.5094, allocations: 0 / 0.5384 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005898/0.51, allocations: 327.4 kB / 0.5387 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.657e-05/0.51, allocations: 85.89 kB / 0.5388 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.841e-05/0.5101, allocations: 3.312 kB / 0.5388 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002728/0.5104, allocations: 15.55 kB / 0.5388 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.5104, allocations: 23.3 kB / 0.5389 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-05/0.5104, allocations: 10.27 kB / 0.5389 GB, free: 10.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.541e-05/0.5105, allocations: 82.55 kB / 0.5389 GB, free: 10.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5105, allocations: 0 / 0.5389 GB, free: 10.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000345/0.5108, allocations: 49.58 kB / 0.539 GB, free: 10.42 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (18): * Single equations (assignments): 18 * 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.0002371/0.5111, allocations: 125.7 kB / 0.5391 GB, free: 10.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005534/0.5116, allocations: 193.3 kB / 0.5393 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.5116, allocations: 256 / 0.5393 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.5119, allocations: 104.5 kB / 0.5394 GB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.5123, allocations: 43.36 kB / 0.5394 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007116/0.513, allocations: 347.1 kB / 0.5398 GB, free: 10.04 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002201/0.5133, allocations: 0.6886 MB / 0.5404 GB, free: 9.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001889/0.5135, allocations: 36.16 kB / 0.5405 GB, free: 9.316 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5135, allocations: 0 / 0.5405 GB, free: 9.316 MB / 394.7 MB Notification: Performance of Templates: time 0.003539/0.517, allocations: 2.353 MB / 0.5428 GB, free: 8.098 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches