Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008771/0.0008771, allocations: 90.61 kB / 16.65 MB, free: 6.266 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.0008628/0.000863, allocations: 180 kB / 17.56 MB, free: 5.879 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.286/1.286, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002422, allocations: 11.94 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08484/0.08509, allocations: 50.41 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.001324/0.08645, allocations: 1.083 MB / 352.9 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.09961, allocations: 12.16 MB / 365.1 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.644e-05/0.09968, allocations: 0 / 365.1 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.951e-05/0.09971, allocations: 3.984 kB / 365.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002441/0.1022, allocations: 0.8559 MB / 365.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.1035, allocations: 0.5405 MB / 366.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.701e-05/0.1036, allocations: 63.66 kB / 366.5 MB, free: 4.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.259e-05/0.1037, allocations: 4 kB / 366.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.529e-05/0.1037, allocations: 27.91 kB / 366.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.852e-05/0.1038, allocations: 39.84 kB / 366.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1038, allocations: 0 / 366.6 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002597/0.1064, allocations: 1.557 MB / 368.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.999e-05/0.1064, allocations: 11.98 kB / 368.2 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.325e-05/0.1065, allocations: 53.55 kB / 368.2 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001777/0.1083, allocations: 1.06 MB / 369.3 MB, free: 2.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.1083, allocations: 0 / 369.3 MB, free: 2.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1083, allocations: 4 kB / 369.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1083, allocations: 0 / 369.3 MB, free: 2.176 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0007336/0.1091, allocations: 0.5301 MB / 369.8 MB, free: 1.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.1091, allocations: 12.03 kB / 369.8 MB, free: 1.586 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.1092, allocations: 8.922 kB / 369.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.1094, allocations: 192.2 kB / 370 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.1094, allocations: 384 / 370 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.1094, allocations: 384 / 370 MB, free: 1.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.1096, allocations: 83.45 kB / 370.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.1096, allocations: 0 / 370.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.1096, allocations: 0 / 370.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1096, allocations: 0 / 370.1 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.87e-05/0.1097, allocations: 19.98 kB / 370.1 MB, free: 1.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001849/0.1099, allocations: 170.5 kB / 370.3 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.1102, allocations: 89.2 kB / 370.4 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.338e-05/0.1103, allocations: 25.77 kB / 370.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1584/0.2686, allocations: 3.28 MB / 373.7 MB, free: 23.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.2687, allocations: 48.61 kB / 373.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.054e-06/0.2687, allocations: 0 / 373.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003608/0.2691, allocations: 80.86 kB / 373.8 MB, free: 23.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.2691, allocations: 78.89 kB / 373.9 MB, free: 23.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.2692, allocations: 114.3 kB / 374 MB, free: 23.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.608e-05/0.2693, allocations: 28.11 kB / 374 MB, free: 23.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.897e-05/0.2693, allocations: 90.45 kB / 374.1 MB, free: 23.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.2693, allocations: 20.31 kB / 374.1 MB, free: 23.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-05/0.2694, allocations: 14 kB / 374.1 MB, free: 23.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.306e-05/0.2694, allocations: 319.3 kB / 374.5 MB, free: 23.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.663e-05/0.2695, allocations: 10.45 kB / 374.5 MB, free: 23.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.726e-05/0.2695, allocations: 24.48 kB / 374.5 MB, free: 23.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.2696, allocations: 40.8 kB / 374.5 MB, free: 23.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2696, allocations: 1.375 kB / 374.5 MB, free: 23.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001586/0.2698, allocations: 69.61 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.2698, allocations: 6 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2698, allocations: 0 / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.2699, allocations: 1.641 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.936e-05/0.2699, allocations: 12.73 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.27, allocations: 5.875 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.609e-05/0.27, allocations: 10.58 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.27, allocations: 2.578 kB / 374.6 MB, free: 23.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 6 * 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 5.776e-05/0.2701, allocations: 115.7 kB / 374.7 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.2701, allocations: 3.188 kB / 374.7 MB, free: 23.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002592/0.2704, allocations: 105.9 kB / 374.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.2704, allocations: 0.8438 kB / 374.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2704, allocations: 2.172 kB / 374.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2704, allocations: 0.5625 kB / 374.9 MB, free: 22.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.2705, allocations: 179.8 kB / 375 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2705, allocations: 1.156 kB / 375 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.99e-05/0.2706, allocations: 15.62 kB / 375 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2706, allocations: 4.5 kB / 375.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.2706, allocations: 2.062 kB / 375.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2706, allocations: 0 / 375.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.2706, allocations: 5.094 kB / 375.1 MB, free: 22.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.2708, allocations: 108.3 kB / 375.2 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.6e-05/0.2709, allocations: 90.88 kB / 375.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.2709, allocations: 4.703 kB / 375.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.215e-05/0.271, allocations: 3.5 kB / 375.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.299e-05/0.271, allocations: 7.016 kB / 375.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.271, allocations: 3.016 kB / 375.3 MB, free: 22.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.715e-05/0.2711, allocations: 93.52 kB / 375.4 MB, free: 22.53 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2711, allocations: 3.938 kB / 375.4 MB, free: 22.53 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001002/0.2721, allocations: 328 kB / 375.7 MB, free: 22.51 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 6 * 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.001375/0.2735, allocations: 0.5795 MB / 376.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.2737, allocations: 31.88 kB / 376.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2737, allocations: 0 / 376.3 MB, free: 22.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.362e-05/0.2737, allocations: 27.7 kB / 376.3 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002093/0.274, allocations: 14.31 kB / 376.3 MB, free: 22.35 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000365/0.2743, allocations: 187.8 kB / 376.5 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.573e-05/0.2744, allocations: 0.6865 MB / 377.2 MB, free: 21.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.2746, allocations: 41.77 kB / 377.2 MB, free: 21.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/0.2746, allocations: 26.5 kB / 377.3 MB, free: 21.49 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2746, allocations: 0 / 377.3 MB, free: 21.49 MB / 302.1 MB Notification: Performance of Templates: time 0.01304/0.2877, allocations: 8.874 MB / 386.1 MB, free: 18.57 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches