Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") translateModel(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001332/0.001332, allocations: 179.7 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.286/1.286, allocations: 205.4 MB / 222.6 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007618/0.0007619, allocations: 99.88 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003307, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2215, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001489/0.223, allocations: 1.068 MB / 375.6 MB, free: 44.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02201/0.2451, allocations: 22.18 MB / 397.8 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.959e-05/0.2452, allocations: 4 kB / 397.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.2453, allocations: 3.938 kB / 397.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.2561, allocations: 4.22 MB / 402 MB, free: 21.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004888/0.2566, allocations: 215.1 kB / 402.2 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.442e-05/0.2567, allocations: 83.62 kB / 402.3 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.775e-05/0.2568, allocations: 0 / 402.3 MB, free: 21.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.781e-05/0.2568, allocations: 35.89 kB / 402.3 MB, free: 20.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.973e-05/0.2569, allocations: 35.89 kB / 402.4 MB, free: 20.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.619e-05/0.2569, allocations: 4 kB / 402.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01094/0.2679, allocations: 7.662 MB / 410.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.356e-05/0.268, allocations: 11.98 kB / 410.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.268, allocations: 37.64 kB / 410.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004372/0.2724, allocations: 2.772 MB / 412.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2724, allocations: 4 kB / 412.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2724, allocations: 0 / 412.9 MB, free: 10.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.2724, allocations: 0 / 412.9 MB, free: 10.45 MB / 298.7 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.001931/0.2744, allocations: 0.8888 MB / 413.8 MB, free: 9.508 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2744, allocations: 12.02 kB / 413.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.872e-05/0.2744, allocations: 7.906 kB / 413.8 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001305/0.2746, allocations: 187 kB / 414 MB, free: 9.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.2746, allocations: 7.984 kB / 414 MB, free: 9.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.135e-05/0.2746, allocations: 8 kB / 414 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001452/0.2748, allocations: 71.31 kB / 414.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.2748, allocations: 0 / 414.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.2748, allocations: 0 / 414.1 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.2748, allocations: 4 kB / 414.1 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.2749, allocations: 31.92 kB / 414.1 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.2751, allocations: 198.5 kB / 414.3 MB, free: 8.887 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.2754, allocations: 97.11 kB / 414.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.224e-05/0.2754, allocations: 33.77 kB / 414.4 MB, free: 8.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/0.2755, allocations: 12 kB / 414.4 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.2755, allocations: 30.56 kB / 414.4 MB, free: 8.684 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.2755, allocations: 0 / 414.4 MB, free: 8.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002595/0.2758, allocations: 105.5 kB / 414.6 MB, free: 8.574 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.2758, allocations: 85.05 kB / 414.6 MB, free: 8.473 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.746e-05/0.2759, allocations: 138 kB / 414.8 MB, free: 8.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.2759, allocations: 29.7 kB / 414.8 MB, free: 8.293 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.307e-05/0.276, allocations: 88.14 kB / 414.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.276, allocations: 19.75 kB / 414.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.276, allocations: 0 / 414.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.566e-05/0.2761, allocations: 322.8 kB / 415.2 MB, free: 7.859 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.235e-05/0.2761, allocations: 15.98 kB / 415.2 MB, free: 7.844 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.044e-05/0.2762, allocations: 29.7 kB / 415.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.244e-05/0.2762, allocations: 16 kB / 415.3 MB, free: 7.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2762, allocations: 4 kB / 415.3 MB, free: 7.789 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001504/0.2764, allocations: 85.92 kB / 415.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.2764, allocations: 8 kB / 415.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2764, allocations: 0 / 415.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.2764, allocations: 0 / 415.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.801e-05/0.2765, allocations: 8 kB / 415.4 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.2765, allocations: 4 kB / 415.4 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.135e-05/0.2766, allocations: 3.984 kB / 415.4 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.2766, allocations: 4 kB / 415.4 MB, free: 7.672 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.216e-05/0.2766, allocations: 117.8 kB / 415.5 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.584e-05/0.2767, allocations: 11.94 kB / 415.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002017/0.2769, allocations: 101.4 kB / 415.6 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2769, allocations: 4 kB / 415.6 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.2769, allocations: 128 / 415.6 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2769, allocations: 4 kB / 415.6 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.915e-05/0.277, allocations: 181.5 kB / 415.8 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.277, allocations: 0 / 415.8 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.486e-05/0.2771, allocations: 23.86 kB / 415.8 MB, free: 7.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.2771, allocations: 4 kB / 415.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.2771, allocations: 0 / 415.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2771, allocations: 0 / 415.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.2771, allocations: 0 / 415.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001516/0.2773, allocations: 106 kB / 415.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.129e-05/0.2773, allocations: 100.9 kB / 416 MB, free: 6.926 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/0.2773, allocations: 8 kB / 416 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.347e-05/0.2774, allocations: 0 / 416 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.547e-05/0.2775, allocations: 11.92 kB / 416.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.2775, allocations: 4 kB / 416.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.916e-05/0.2775, allocations: 115.6 kB / 416.2 MB, free: 6.789 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2776, allocations: 0 / 416.2 MB, free: 6.789 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002097/0.2797, allocations: 0.9174 MB / 417.1 MB, free: 5.871 MB / 298.7 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 (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.003507/0.2832, allocations: 1.229 MB / 418.3 MB, free: 4.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000172/0.2834, allocations: 48.19 kB / 418.4 MB, free: 4.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.2834, allocations: 0 / 418.4 MB, free: 4.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.773e-05/0.2834, allocations: 23.92 kB / 418.4 MB, free: 4.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.2837, allocations: 31.33 kB / 418.4 MB, free: 4.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000349/0.284, allocations: 241 kB / 418.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.421e-05/0.2842, allocations: 0.6857 MB / 419.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.2842, allocations: 15.44 kB / 419.4 MB, free: 3.543 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2842, allocations: 0 / 419.4 MB, free: 3.543 MB / 298.7 MB Notification: Performance of Templates: time 0.02887/0.3131, allocations: 19.28 MB / 438.6 MB, free: 244 kB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches