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.001411/0.001411, allocations: 195.9 kB / 17.38 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.242/1.242, allocations: 226.6 MB / 244.7 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007444/0.0007444, allocations: 104.4 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002349/0.000235, allocations: 11.98 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2057, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3471/0.5528, allocations: 135.4 MB / 0.5307 GB, free: 13.44 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.5549, allocations: 2.318 MB / 0.5329 GB, free: 13.3 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.531e-05/0.555, allocations: 4 kB / 0.5329 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.5551, allocations: 21.23 kB / 0.533 GB, free: 13.29 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006983/0.5558, allocations: 259.8 kB / 0.5332 GB, free: 13.22 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001572/0.556, allocations: 46.72 kB / 0.5333 GB, free: 13.21 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 8.349e-05/0.5561, allocations: 71.19 kB / 0.5333 GB, free: 13.19 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.856e-05/0.5561, allocations: 5.891 kB / 0.5333 GB, free: 13.19 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.737e-05/0.5562, allocations: 30.53 kB / 0.5334 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.348e-05/0.5563, allocations: 24.8 kB / 0.5334 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 8.546e-06/0.5563, allocations: 0 / 0.5334 GB, free: 13.18 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006637/0.557, allocations: 375.4 kB / 0.5337 GB, free: 13.15 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 1.525e-05/0.557, allocations: 6.094 kB / 0.5338 GB, free: 13.15 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 5.35e-05/0.557, allocations: 55.16 kB / 0.5338 GB, free: 13.11 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.5574, allocations: 213.8 kB / 0.534 GB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.5575, allocations: 0.6875 kB / 0.534 GB, free: 13.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5575, allocations: 0 / 0.534 GB, free: 13.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.5575, allocations: 0 / 0.534 GB, free: 13.09 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.0007673/0.5582, allocations: 428.2 kB / 0.5344 GB, free: 12.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.5583, allocations: 9.719 kB / 0.5344 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005757/0.564, allocations: 455.7 kB / 0.5349 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.5642, allocations: 172.1 kB / 0.535 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.5642, allocations: 5.719 kB / 0.535 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.182e-05/0.5643, allocations: 14.03 kB / 0.535 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000699/0.565, allocations: 295.6 kB / 0.5353 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.565, allocations: 0 / 0.5353 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.5651, allocations: 4.375 kB / 0.5353 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.5651, allocations: 2.844 kB / 0.5353 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007339/0.5658, allocations: 274.3 kB / 0.5356 GB, free: 12.46 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009319/0.5668, allocations: 433.6 kB / 0.536 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008966/0.5677, allocations: 202.8 kB / 0.5362 GB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.5679, allocations: 75.78 kB / 0.5363 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.5679, allocations: 2.531 kB / 0.5363 GB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.5679, allocations: 30.56 kB / 0.5363 GB, free: 12.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.513e-06/0.5679, allocations: 0 / 0.5363 GB, free: 12.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.001532/0.5695, allocations: 425.7 kB / 0.5367 GB, free: 12.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.5695, allocations: 51.41 kB / 0.5368 GB, free: 11.96 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.98e-05/0.5696, allocations: 104.5 kB / 0.5369 GB, free: 11.86 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.688e-05/0.5696, allocations: 42.75 kB / 0.5369 GB, free: 11.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.021e-05/0.5697, allocations: 87.95 kB / 0.537 GB, free: 11.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.126e-05/0.5697, allocations: 62.47 kB / 0.537 GB, free: 11.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.5698, allocations: 5.5 kB / 0.537 GB, free: 11.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.5699, allocations: 316.9 kB / 0.5374 GB, free: 11.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.5701, allocations: 80.19 kB / 0.5374 GB, free: 11.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.5703, allocations: 119.4 kB / 0.5375 GB, free: 11.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004756/0.5708, allocations: 200.5 kB / 0.5377 GB, free: 11.29 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.5708, allocations: 3.938 kB / 0.5377 GB, free: 11.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000582/0.5714, allocations: 249.2 kB / 0.538 GB, free: 11.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.5715, allocations: 2.938 kB / 0.538 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.5715, allocations: 2.812 kB / 0.538 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.5715, allocations: 1.75 kB / 0.538 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003549/0.5718, allocations: 50.81 kB / 0.538 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.5719, allocations: 6.625 kB / 0.538 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.5721, allocations: 15.06 kB / 0.5381 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.765e-05/0.5722, allocations: 16.5 kB / 0.5381 GB, free: 11.22 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.0001038/0.5723, allocations: 120.6 kB / 0.5382 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.5723, allocations: 5.344 kB / 0.5382 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007462/0.5731, allocations: 269.4 kB / 0.5384 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.5731, allocations: 2.875 kB / 0.5384 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.5731, allocations: 0 / 0.5384 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5731, allocations: 2.484 kB / 0.5384 GB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.5742, allocations: 0.592 MB / 0.539 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.5743, allocations: 0 / 0.539 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.5746, allocations: 52.19 kB / 0.5391 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.5746, allocations: 2.844 kB / 0.5391 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.5746, allocations: 5.031 kB / 0.5391 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.5746, allocations: 0 / 0.5391 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5746, allocations: 11.03 kB / 0.5391 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005793/0.5752, allocations: 337.2 kB / 0.5394 GB, free: 10.54 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.5753, allocations: 89.66 kB / 0.5395 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.999e-05/0.5753, allocations: 0 / 0.5395 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.5756, allocations: 18.23 kB / 0.5395 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.5756, allocations: 15.92 kB / 0.5395 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.5757, allocations: 10.31 kB / 0.5395 GB, free: 10.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.773e-05/0.5757, allocations: 83.41 kB / 0.5396 GB, free: 10.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5757, allocations: 2.906 kB / 0.5396 GB, free: 10.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003324/0.576, allocations: 42.75 kB / 0.5397 GB, free: 10.35 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.0002222/0.5763, allocations: 123.8 kB / 0.5398 GB, free: 10.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005411/0.5768, allocations: 197.8 kB / 0.54 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5768, allocations: 3.938 kB / 0.54 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002525/0.5771, allocations: 108.4 kB / 0.5401 GB, free: 10.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.5775, allocations: 35.31 kB / 0.5401 GB, free: 10.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007286/0.5782, allocations: 349.1 kB / 0.5404 GB, free: 9.938 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002373/0.5785, allocations: 0.6947 MB / 0.5411 GB, free: 9.227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/0.5787, allocations: 37.84 kB / 0.5412 GB, free: 9.207 MB / 394.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5787, allocations: 0 / 0.5412 GB, free: 9.207 MB / 394.7 MB Notification: Performance of Templates: time 0.003731/0.5824, allocations: 2.346 MB / 0.5435 GB, free: 7.992 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