Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002738/0.002738, allocations: 198.8 kB / 18.07 MB, free: 3.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.608/2.608, allocations: 226.5 MB / 245.3 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001414/0.001415, allocations: 102.7 kB / 297.4 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004471/0.0004474, allocations: 8 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5472/0.5477, allocations: 51.28 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.431/2.979, allocations: 0.5432 GB / 0.9423 GB, free: 89.67 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000457/2.98, allocations: 80.64 kB / 0.9424 GB, free: 89.59 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8473/3.827, allocations: 113.8 MB / 1.054 GB, free: 152.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 7.614e-06/3.827, allocations: 0 / 1.054 GB, free: 152.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.568e-05/3.827, allocations: 3.625 kB / 1.054 GB, free: 152.4 MB / 458.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.002221/3.829, allocations: 0.5738 MB / 1.054 GB, free: 151.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.333e-05/3.829, allocations: 14.92 kB / 1.054 GB, free: 151.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002699/3.83, allocations: 8.781 kB / 1.054 GB, free: 151.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/3.83, allocations: 179.3 kB / 1.054 GB, free: 151.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/3.83, allocations: 7.906 kB / 1.054 GB, free: 151.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.042e-05/3.83, allocations: 384 / 1.054 GB, free: 151.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/3.83, allocations: 67.08 kB / 1.054 GB, free: 151.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/3.83, allocations: 3.094 kB / 1.054 GB, free: 151.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.223e-05/3.83, allocations: 3.938 kB / 1.054 GB, free: 151.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/3.83, allocations: 0 / 1.054 GB, free: 151.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/3.83, allocations: 29.02 kB / 1.054 GB, free: 151.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002964/3.831, allocations: 169.8 kB / 1.055 GB, free: 151.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/3.831, allocations: 81.31 kB / 1.055 GB, free: 151.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.684e-05/3.831, allocations: 20.25 kB / 1.055 GB, free: 151.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1146/3.946, allocations: 35.43 MB / 1.089 GB, free: 122.9 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.056e-05/3.946, allocations: 36.34 kB / 1.089 GB, free: 122.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=6): time 8.125e-06/3.946, allocations: 0 / 1.089 GB, free: 122.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006239/3.947, allocations: 79.77 kB / 1.089 GB, free: 122.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/3.947, allocations: 84.39 kB / 1.089 GB, free: 122.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/3.947, allocations: 113.8 kB / 1.09 GB, free: 122.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.792e-05/3.947, allocations: 25.7 kB / 1.09 GB, free: 122.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.137e-05/3.947, allocations: 92.12 kB / 1.09 GB, free: 122.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/3.947, allocations: 19.66 kB / 1.09 GB, free: 122.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-06/3.947, allocations: 0 / 1.09 GB, free: 122.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.186e-05/3.947, allocations: 318.8 kB / 1.09 GB, free: 122.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.594e-05/3.947, allocations: 8 kB / 1.09 GB, free: 122.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.475e-05/3.947, allocations: 29.7 kB / 1.09 GB, free: 122.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/3.948, allocations: 40.89 kB / 1.09 GB, free: 122 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/3.948, allocations: 0 / 1.09 GB, free: 122 MB / 458.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002314/3.948, allocations: 70.73 kB / 1.09 GB, free: 122 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/3.948, allocations: 7.938 kB / 1.09 GB, free: 122 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/3.948, allocations: 3.938 kB / 1.09 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/3.948, allocations: 0 / 1.09 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/3.948, allocations: 21.11 kB / 1.09 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/3.948, allocations: 0 / 1.09 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.216e-05/3.948, allocations: 7.469 kB / 1.09 GB, free: 121.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/3.948, allocations: 4 kB / 1.09 GB, free: 121.9 MB / 458.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 9.903e-05/3.948, allocations: 114.6 kB / 1.09 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/3.948, allocations: 0 / 1.09 GB, free: 121.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/3.949, allocations: 118.8 kB / 1.09 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/3.949, allocations: 0 / 1.09 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/3.949, allocations: 0 / 1.09 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/3.949, allocations: 4 kB / 1.09 GB, free: 121.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001574/3.949, allocations: 165.6 kB / 1.091 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/3.949, allocations: 0 / 1.091 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/3.949, allocations: 15.92 kB / 1.091 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/3.949, allocations: 4 kB / 1.091 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/3.949, allocations: 7.938 kB / 1.091 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/3.949, allocations: 4 kB / 1.091 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/3.949, allocations: 0 / 1.091 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004597/3.954, allocations: 97.91 kB / 1.091 GB, free: 121.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/3.954, allocations: 93 kB / 1.091 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/3.954, allocations: 3.938 kB / 1.091 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/3.954, allocations: 11.98 kB / 1.091 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.475e-05/3.954, allocations: 8 kB / 1.091 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/3.954, allocations: 3.984 kB / 1.091 GB, free: 121.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.898e-05/3.955, allocations: 91.58 kB / 1.091 GB, free: 121.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/3.955, allocations: 0 / 1.091 GB, free: 121.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002002/3.957, allocations: 343.5 kB / 1.091 GB, free: 120.7 MB / 458.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.003152/3.96, allocations: 0.7074 MB / 1.092 GB, free: 120 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003455/3.96, allocations: 35.92 kB / 1.092 GB, free: 120 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.253e-06/3.96, allocations: 4 kB / 1.092 GB, free: 120 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 7.757e-05/3.96, allocations: 15.98 kB / 1.092 GB, free: 120 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/3.961, allocations: 10.95 kB / 1.092 GB, free: 120 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006346/3.961, allocations: 219 kB / 1.092 GB, free: 119.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001642/3.961, allocations: 0.6885 MB / 1.093 GB, free: 119 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.227e-05/3.961, allocations: 23.42 kB / 1.093 GB, free: 119 MB / 458.7 MB Notification: Performance of SimCode: time 1.323e-06/3.962, allocations: 0 / 1.093 GB, free: 119 MB / 458.7 MB Notification: Performance of Templates: time 0.0156/3.977, allocations: 6.198 MB / 1.099 GB, free: 112.8 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_T/Inverse_sh_T.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches