Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 108.4 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 222.9 MB / 241.8 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 52.08 kB / 300.6 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1128, allocations: 49.44 MB / 350 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.3412/0.454, allocations: 147 MB / 497 MB, free: 2.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002997/0.4571, allocations: 2.572 MB / 499.6 MB, free: 15.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.456e-05/0.4571, allocations: 0 / 499.6 MB, free: 15.57 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001657/0.4573, allocations: 23.89 kB / 499.6 MB, free: 15.54 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009507/0.4583, allocations: 270 kB / 499.9 MB, free: 15.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.4585, allocations: 51.83 kB / 499.9 MB, free: 15.23 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.4587, allocations: 71.59 kB / 500 MB, free: 15.16 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.072e-05/0.4588, allocations: 8 kB / 0.4883 GB, free: 15.15 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.459, allocations: 35.8 kB / 0.4883 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.245e-05/0.4591, allocations: 28.66 kB / 0.4883 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.001e-05/0.4591, allocations: 0 / 0.4883 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008169/0.4599, allocations: 363.5 kB / 0.4887 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/0.4599, allocations: 15.92 kB / 0.4887 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.127e-05/0.46, allocations: 31.81 kB / 0.4887 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003979/0.4604, allocations: 209.1 kB / 0.4889 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4604, allocations: 3.938 kB / 0.4889 GB, free: 14.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4604, allocations: 0 / 0.4889 GB, free: 14.48 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.4604, allocations: 3 kB / 0.4889 GB, free: 14.48 MB / 414.1 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.0009419/0.4614, allocations: 443.9 kB / 0.4894 GB, free: 14 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.4614, allocations: 8.031 kB / 0.4894 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00598/0.4674, allocations: 457.2 kB / 0.4898 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.4676, allocations: 172.1 kB / 0.49 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.4676, allocations: 4 kB / 0.49 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.462e-05/0.4677, allocations: 11.91 kB / 0.49 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008222/0.4685, allocations: 301.3 kB / 0.4903 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.4686, allocations: 3.938 kB / 0.4903 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.013e-05/0.4686, allocations: 0 / 0.4903 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.4686, allocations: 4 kB / 0.4903 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007951/0.4694, allocations: 271.8 kB / 0.4905 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.4705, allocations: 424.8 kB / 0.491 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.4716, allocations: 204.6 kB / 0.4911 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.4718, allocations: 69.81 kB / 0.4912 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.4718, allocations: 11.94 kB / 0.4912 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.4718, allocations: 30.56 kB / 0.4913 GB, free: 11.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.944e-06/0.4719, allocations: 0 / 0.4913 GB, free: 11.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001771/0.4736, allocations: 423.8 kB / 0.4917 GB, free: 11.54 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.4737, allocations: 55.41 kB / 0.4917 GB, free: 11.47 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.278e-05/0.4738, allocations: 101.8 kB / 0.4918 GB, free: 11.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.4738, allocations: 29.7 kB / 0.4918 GB, free: 11.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.609e-05/0.4739, allocations: 99.88 kB / 0.4919 GB, free: 11.22 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.4739, allocations: 63.11 kB / 0.492 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.666e-05/0.474, allocations: 41.69 kB / 0.492 GB, free: 11.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.4741, allocations: 318.8 kB / 0.4923 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.4744, allocations: 75.94 kB / 0.4924 GB, free: 10.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.4747, allocations: 120.2 kB / 0.4925 GB, free: 10.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005344/0.4752, allocations: 207.2 kB / 0.4927 GB, free: 10.37 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4753, allocations: 0 / 0.4927 GB, free: 10.37 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006543/0.4759, allocations: 245.3 kB / 0.493 GB, free: 10.12 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.4759, allocations: 8 kB / 0.493 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.476, allocations: 3.938 kB / 0.493 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.476, allocations: 4 kB / 0.493 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003898/0.4764, allocations: 55.89 kB / 0.493 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.4764, allocations: 0 / 0.493 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.4767, allocations: 12.17 kB / 0.493 GB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.4767, allocations: 20.11 kB / 0.4931 GB, free: 10.02 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.4768, allocations: 121.7 kB / 0.4932 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.026e-05/0.4769, allocations: 11.89 kB / 0.4932 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008454/0.4777, allocations: 274.8 kB / 0.4934 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.4778, allocations: 4 kB / 0.4934 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4778, allocations: 0 / 0.4934 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4778, allocations: 0 / 0.4934 GB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.4791, allocations: 0.5822 MB / 0.494 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.4791, allocations: 0 / 0.494 GB, free: 8.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003574/0.4795, allocations: 55.45 kB / 0.4941 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.738e-06/0.4795, allocations: 0 / 0.4941 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.975e-05/0.4795, allocations: 4 kB / 0.4941 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4795, allocations: 0 / 0.4941 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.4795, allocations: 7.938 kB / 0.4941 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007094/0.4803, allocations: 338.8 kB / 0.4944 GB, free: 8.555 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.183e-05/0.4803, allocations: 85.02 kB / 0.4945 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.4804, allocations: 4 kB / 0.4945 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.4806, allocations: 11.98 kB / 0.4945 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.4807, allocations: 23.92 kB / 0.4945 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.4807, allocations: 15.92 kB / 0.4945 GB, free: 8.398 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.079e-05/0.4808, allocations: 83.27 kB / 0.4946 GB, free: 8.316 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4808, allocations: 0 / 0.4946 GB, free: 8.316 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.4811, allocations: 44 kB / 0.4947 GB, free: 8.273 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002527/0.4814, allocations: 135.1 kB / 0.4948 GB, free: 8.133 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000641/0.4821, allocations: 195.8 kB / 0.495 GB, free: 7.941 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.4821, allocations: 256 / 0.495 GB, free: 7.941 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.4824, allocations: 107.9 kB / 0.4951 GB, free: 7.836 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.4828, allocations: 31.97 kB / 0.4951 GB, free: 7.805 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008343/0.4837, allocations: 330.4 kB / 0.4954 GB, free: 7.445 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.484, allocations: 0.6931 MB / 0.4961 GB, free: 6.727 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.4842, allocations: 43.34 kB / 0.4961 GB, free: 6.688 MB / 414.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4842, allocations: 0 / 0.4961 GB, free: 6.688 MB / 414.1 MB Notification: Performance of Templates: time 0.004625/0.4888, allocations: 2.322 MB / 0.4984 GB, free: 4.375 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & ./Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches