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.0008252/0.0008252, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0008907/0.0008909, allocations: 177 kB / 17.56 MB, free: 6.18 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.299/1.299, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 7.938 kB / 301.4 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1037, allocations: 50.41 MB / 351.8 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.314/0.4177, allocations: 145.1 MB / 496.9 MB, free: 4.535 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003725/0.4215, allocations: 2.532 MB / 499.4 MB, free: 2.008 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.998e-05/0.4216, allocations: 4 kB / 499.4 MB, free: 2.004 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002147/0.4218, allocations: 15.91 kB / 499.5 MB, free: 1.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001442/0.4233, allocations: 273.6 kB / 499.7 MB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.4235, allocations: 51.81 kB / 499.8 MB, free: 1.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001276/0.4237, allocations: 75.55 kB / 499.8 MB, free: 1.598 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.115e-05/0.4237, allocations: 4 kB / 499.9 MB, free: 1.594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.4239, allocations: 31.86 kB / 499.9 MB, free: 1.562 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.457e-05/0.4239, allocations: 27.91 kB / 499.9 MB, free: 1.535 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.424, allocations: 4 kB / 499.9 MB, free: 1.531 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008878/0.4248, allocations: 359.5 kB / 0.4885 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.513e-05/0.4249, allocations: 11.92 kB / 0.4886 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.58e-05/0.4249, allocations: 49.58 kB / 0.4886 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005455/0.4255, allocations: 308.7 kB / 0.4889 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.4255, allocations: 4 kB / 0.4889 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4255, allocations: 3.938 kB / 0.4889 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.4255, allocations: 0 / 0.4889 GB, free: 0.8047 MB / 398.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.0009985/0.4265, allocations: 419.9 kB / 0.4893 GB, free: 356 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4266, allocations: 8.031 kB / 0.4893 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006477/0.4331, allocations: 465.2 kB / 0.4898 GB, free: 15.89 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.4332, allocations: 168.1 kB / 0.4899 GB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.4332, allocations: 11.94 kB / 0.4899 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.4334, allocations: 7.906 kB / 0.4899 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00083/0.4342, allocations: 297.3 kB / 0.4902 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.4342, allocations: 0 / 0.4902 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.4343, allocations: 0 / 0.4902 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.4343, allocations: 8 kB / 0.4902 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008587/0.4351, allocations: 279.7 kB / 0.4905 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.4362, allocations: 424.9 kB / 0.4909 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.4372, allocations: 211.2 kB / 0.4911 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002007/0.4374, allocations: 64.83 kB / 0.4912 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.4375, allocations: 7.984 kB / 0.4912 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.4375, allocations: 30.56 kB / 0.4912 GB, free: 14.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.523e-06/0.4375, allocations: 0 / 0.4912 GB, free: 14.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.001758/0.4393, allocations: 423.9 kB / 0.4916 GB, free: 13.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.4393, allocations: 55.41 kB / 0.4917 GB, free: 13.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.139e-05/0.4394, allocations: 101.8 kB / 0.4918 GB, free: 13.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.4394, allocations: 29.7 kB / 0.4918 GB, free: 13.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.987e-05/0.4395, allocations: 95.89 kB / 0.4919 GB, free: 13.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.314e-05/0.4395, allocations: 67.08 kB / 0.4919 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.408e-05/0.4396, allocations: 17.72 kB / 0.492 GB, free: 13.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.901e-05/0.4397, allocations: 318.8 kB / 0.4923 GB, free: 13.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.44, allocations: 83.94 kB / 0.4923 GB, free: 13.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002913/0.4403, allocations: 119.2 kB / 0.4924 GB, free: 12.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005738/0.4409, allocations: 196.2 kB / 0.4926 GB, free: 12.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.4409, allocations: 7.938 kB / 0.4926 GB, free: 12.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006966/0.4416, allocations: 248 kB / 0.4929 GB, free: 12.48 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.4416, allocations: 4 kB / 0.4929 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.4416, allocations: 192 / 0.4929 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.4417, allocations: 4.125 kB / 0.4929 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003881/0.442, allocations: 55.89 kB / 0.4929 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.927e-06/0.4421, allocations: 7.938 kB / 0.4929 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002771/0.4423, allocations: 17.47 kB / 0.493 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.4424, allocations: 16 kB / 0.493 GB, free: 12.38 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.0001088/0.4425, allocations: 121.7 kB / 0.4931 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.354e-05/0.4426, allocations: 7.984 kB / 0.4931 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008994/0.4435, allocations: 269.8 kB / 0.4934 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.4435, allocations: 7.938 kB / 0.4934 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.4435, allocations: 3.938 kB / 0.4934 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4435, allocations: 0 / 0.4934 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001268/0.4448, allocations: 0.5903 MB / 0.494 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4448, allocations: 0.875 kB / 0.494 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003513/0.4452, allocations: 43.95 kB / 0.494 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.4452, allocations: 3.938 kB / 0.494 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.483e-05/0.4452, allocations: 11.98 kB / 0.494 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/0.4452, allocations: 8.062 kB / 0.494 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4452, allocations: 3.938 kB / 0.494 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006739/0.4459, allocations: 333 kB / 0.4943 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.783e-05/0.446, allocations: 81.02 kB / 0.4944 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.446, allocations: 4 kB / 0.4944 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/0.4463, allocations: 11.98 kB / 0.4944 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.736e-05/0.4463, allocations: 15.92 kB / 0.4944 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.4464, allocations: 19.92 kB / 0.4945 GB, free: 10.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.759e-05/0.4464, allocations: 83.27 kB / 0.4945 GB, free: 10.67 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4464, allocations: 0 / 0.4945 GB, free: 10.67 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003397/0.4468, allocations: 47.98 kB / 0.4946 GB, free: 10.62 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.0002502/0.447, allocations: 129.3 kB / 0.4947 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006313/0.4477, allocations: 201.9 kB / 0.4949 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4477, allocations: 0 / 0.4949 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002915/0.448, allocations: 104.2 kB / 0.495 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.4484, allocations: 39.97 kB / 0.495 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007992/0.4492, allocations: 316.6 kB / 0.4953 GB, free: 9.812 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4495, allocations: 0.7008 MB / 0.496 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003963/0.4499, allocations: 48.75 kB / 0.4961 GB, free: 9.039 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.4501, allocations: 31.42 kB / 0.4961 GB, free: 9.012 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4501, allocations: 0 / 0.4961 GB, free: 9.012 MB / 414.1 MB Notification: Performance of Templates: time 0.006255/0.4564, allocations: 2.917 MB / 0.499 GB, free: 6.121 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins/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