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.001195/0.001195, allocations: 95.58 kB / 16.3 MB, free: 5.992 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.001364/0.001364, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.329/1.329, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000235/0.0002351, allocations: 6.281 kB / 300.7 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.07952, allocations: 50.43 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.2863/0.3658, allocations: 125.4 MB / 476.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.3679, allocations: 2.115 MB / 478.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.208e-05/0.3679, allocations: 0 / 478.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.3681, allocations: 25.12 kB / 478.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007302/0.3688, allocations: 273.6 kB / 479 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.369, allocations: 49.66 kB / 479 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.72e-05/0.3691, allocations: 56.98 kB / 479.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.906e-05/0.3691, allocations: 6.656 kB / 479.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.3693, allocations: 50.7 kB / 479.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.475e-05/0.3693, allocations: 27.94 kB / 479.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.556e-06/0.3693, allocations: 2.875 kB / 479.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000709/0.3701, allocations: 380.1 kB / 479.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.113e-05/0.3701, allocations: 4.625 kB / 479.5 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.819e-05/0.3701, allocations: 37.23 kB / 479.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.3704, allocations: 204.8 kB / 479.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.3704, allocations: 7.938 kB / 479.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3705, allocations: 0 / 479.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.3705, allocations: 0 / 479.8 MB, free: 10.22 MB / 366.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.0007661/0.3712, allocations: 431.5 kB / 480.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.3713, allocations: 7.156 kB / 480.2 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006205/0.3775, allocations: 457 kB / 480.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.796e-05/0.3776, allocations: 162.3 kB / 480.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.3776, allocations: 2.562 kB / 480.8 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.596e-05/0.3777, allocations: 11.66 kB / 480.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007099/0.3784, allocations: 291.6 kB / 481.1 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.3784, allocations: 7.922 kB / 481.1 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-05/0.3785, allocations: 7.203 kB / 481.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3785, allocations: 6.812 kB / 481.1 MB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007411/0.3792, allocations: 268.7 kB / 481.4 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009526/0.3802, allocations: 425.5 kB / 481.8 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000943/0.3812, allocations: 203.1 kB / 482 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.3812, allocations: 1.969 kB / 482 MB, free: 8.805 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.3812, allocations: 37.38 kB / 482 MB, free: 8.762 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.3812, allocations: 0 / 482 MB, free: 8.762 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.00161/0.3828, allocations: 420.9 kB / 482.4 MB, free: 8.637 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.3829, allocations: 58.23 kB / 482.5 MB, free: 8.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.465e-05/0.383, allocations: 107.7 kB / 482.6 MB, free: 8.461 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.908e-05/0.383, allocations: 31.33 kB / 482.6 MB, free: 8.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.182e-05/0.3831, allocations: 92.5 kB / 482.7 MB, free: 8.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.887e-05/0.3831, allocations: 61.27 kB / 482.8 MB, free: 8.293 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.753e-05/0.3831, allocations: 4.719 kB / 482.8 MB, free: 8.293 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3832, allocations: 320.4 kB / 483.1 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.3835, allocations: 81.97 kB / 483.2 MB, free: 7.957 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.3838, allocations: 111.1 kB / 483.3 MB, free: 7.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.3841, allocations: 89.95 kB / 483.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3841, allocations: 0 / 483.4 MB, free: 7.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006058/0.3847, allocations: 238.5 kB / 483.6 MB, free: 7.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.3847, allocations: 9.438 kB / 483.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3847, allocations: 2.062 kB / 483.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.3847, allocations: 2.844 kB / 483.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.3851, allocations: 56.33 kB / 483.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/0.3851, allocations: 0 / 483.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00026/0.3854, allocations: 18.94 kB / 483.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.3854, allocations: 17.73 kB / 483.7 MB, free: 7.777 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.3856, allocations: 123 kB / 483.8 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.118e-05/0.3856, allocations: 11.38 kB / 483.9 MB, free: 7.652 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007795/0.3864, allocations: 267.9 kB / 484.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.3864, allocations: 0 / 484.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-06/0.3864, allocations: 0 / 484.1 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.3864, allocations: 6.328 kB / 484.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.3876, allocations: 0.5867 MB / 484.7 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.3877, allocations: 6.484 kB / 484.7 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003294/0.388, allocations: 40.22 kB / 484.8 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.388, allocations: 4 kB / 484.8 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.388, allocations: 12.92 kB / 484.8 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.3881, allocations: 0.625 kB / 484.8 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.3881, allocations: 2.656 kB / 484.8 MB, free: 7.113 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006359/0.3887, allocations: 359.2 kB / 485.1 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.975e-05/0.3888, allocations: 87.81 kB / 485.2 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.859e-05/0.3888, allocations: 6.641 kB / 485.2 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.3891, allocations: 13.39 kB / 485.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.451e-05/0.3891, allocations: 18.92 kB / 485.2 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.3892, allocations: 7.531 kB / 485.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.829e-05/0.3892, allocations: 85.08 kB / 485.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3892, allocations: 0 / 485.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003354/0.3896, allocations: 39.91 kB / 485.4 MB, free: 6.691 MB / 366.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 (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.0002018/0.3898, allocations: 125.2 kB / 485.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.3904, allocations: 195.5 kB / 485.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3904, allocations: 4.25 kB / 485.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002669/0.3906, allocations: 104 kB / 485.8 MB, free: 6.523 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.391, allocations: 39.44 kB / 485.8 MB, free: 6.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/0.3918, allocations: 308.3 kB / 486.1 MB, free: 6.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002341/0.392, allocations: 0.6935 MB / 486.8 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003898/0.3924, allocations: 54.12 kB / 486.9 MB, free: 5.547 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001449/0.3925, allocations: 30.55 kB / 486.9 MB, free: 5.535 MB / 366.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3926, allocations: 7.938 kB / 486.9 MB, free: 5.527 MB / 366.1 MB Notification: Performance of Templates: time 0.005483/0.398, allocations: 2.854 MB / 489.8 MB, free: 4.09 MB / 366.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches