Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Th|Ts|h2|s2",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001127, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 226.6 MB / 244.3 MB, free: 8.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000718/0.0007181, allocations: 103.1 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001873/0.0001873, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1665, allocations: 51.28 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.0008947/0.1674, allocations: 1.088 MB / 408.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0164/0.1839, allocations: 22.09 MB / 430.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.402e-05/0.1839, allocations: 0 / 430.7 MB, free: 4.637 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.685e-05/0.184, allocations: 3.938 kB / 430.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008563/0.1926, allocations: 4.483 MB / 435.1 MB, free: 156 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004177/0.193, allocations: 211.1 kB / 435.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.468e-05/0.1931, allocations: 83.67 kB / 435.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.446e-05/0.1932, allocations: 11.92 kB / 435.4 MB, free: 15.85 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.951e-05/0.1932, allocations: 35.84 kB / 435.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.006e-05/0.1933, allocations: 35.91 kB / 435.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.1933, allocations: 4 kB / 435.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01142/0.2047, allocations: 7.775 MB / 443.3 MB, free: 7.992 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.2048, allocations: 19.91 kB / 443.3 MB, free: 7.973 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.2048, allocations: 33.7 kB / 443.3 MB, free: 7.934 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003821/0.2087, allocations: 2.799 MB / 446.1 MB, free: 5.129 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2087, allocations: 0 / 446.1 MB, free: 5.129 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2087, allocations: 0 / 446.1 MB, free: 5.129 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.2087, allocations: 0 / 446.1 MB, free: 5.129 MB / 314.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.001823/0.2105, allocations: 0.8967 MB / 447 MB, free: 4.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.039e-05/0.2106, allocations: 8.031 kB / 447 MB, free: 4.176 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.2106, allocations: 7.906 kB / 447.1 MB, free: 4.168 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.2108, allocations: 191 kB / 447.2 MB, free: 3.941 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.2108, allocations: 4 kB / 447.2 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.2108, allocations: 4 kB / 447.3 MB, free: 3.934 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000145/0.211, allocations: 71.36 kB / 447.3 MB, free: 3.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.211, allocations: 7.938 kB / 447.3 MB, free: 3.844 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.211, allocations: 4 kB / 447.3 MB, free: 3.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.211, allocations: 0 / 447.3 MB, free: 3.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.2111, allocations: 31.98 kB / 447.4 MB, free: 3.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001772/0.2113, allocations: 194.5 kB / 447.6 MB, free: 3.566 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.2116, allocations: 105 kB / 447.7 MB, free: 3.445 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.624e-05/0.2116, allocations: 29.77 kB / 447.7 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-05/0.2117, allocations: 12 kB / 447.7 MB, free: 3.398 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.2117, allocations: 38.56 kB / 447.7 MB, free: 3.352 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.2117, allocations: 0 / 447.7 MB, free: 3.352 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.00026/0.212, allocations: 101.5 kB / 447.8 MB, free: 3.246 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.679e-05/0.212, allocations: 81.11 kB / 447.9 MB, free: 3.148 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.2122, allocations: 138 kB / 448 MB, free: 3.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.2122, allocations: 37.64 kB / 448.1 MB, free: 2.961 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.574e-05/0.2122, allocations: 84.14 kB / 448.2 MB, free: 2.875 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.2122, allocations: 19.72 kB / 448.2 MB, free: 2.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.2123, allocations: 0 / 448.2 MB, free: 2.855 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.2124, allocations: 322.8 kB / 448.5 MB, free: 2.531 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.504e-05/0.2124, allocations: 11.98 kB / 448.5 MB, free: 2.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.704e-05/0.2125, allocations: 33.7 kB / 448.5 MB, free: 2.48 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.671e-05/0.2125, allocations: 20 kB / 448.6 MB, free: 2.461 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.2126, allocations: 3.953 kB / 448.6 MB, free: 2.457 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001671/0.2127, allocations: 81.59 kB / 448.6 MB, free: 2.371 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.2127, allocations: 4 kB / 448.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2128, allocations: 128 / 448.7 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.2128, allocations: 4 kB / 448.7 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.915e-05/0.2128, allocations: 12 kB / 448.7 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-06/0.2128, allocations: 0 / 448.7 MB, free: 2.352 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.168e-05/0.2129, allocations: 8.453 kB / 448.7 MB, free: 2.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.2129, allocations: 8 kB / 448.7 MB, free: 2.336 MB / 314.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 6.508e-05/0.213, allocations: 113.8 kB / 448.8 MB, free: 2.215 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.213, allocations: 7.859 kB / 448.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002236/0.2132, allocations: 109.5 kB / 448.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.2132, allocations: 0 / 448.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.2132, allocations: 0 / 448.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2133, allocations: 0 / 448.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.2134, allocations: 177.6 kB / 449.1 MB, free: 1.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2134, allocations: 4 kB / 449.1 MB, free: 1.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.2135, allocations: 23.88 kB / 449.1 MB, free: 1.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2135, allocations: 0 / 449.1 MB, free: 1.848 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-06/0.2135, allocations: 3.938 kB / 449.1 MB, free: 1.844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2135, allocations: 4 kB / 449.1 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.2135, allocations: 0 / 449.1 MB, free: 1.84 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.2137, allocations: 110 kB / 449.2 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.341e-05/0.2137, allocations: 96.98 kB / 449.3 MB, free: 1.598 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.514e-05/0.2138, allocations: 3.953 kB / 449.3 MB, free: 1.594 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.401e-05/0.2138, allocations: 4 kB / 449.3 MB, free: 1.59 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.2139, allocations: 3.984 kB / 449.3 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/0.2139, allocations: 8 kB / 449.3 MB, free: 1.578 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.177e-05/0.214, allocations: 119.5 kB / 449.5 MB, free: 1.461 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.214, allocations: 0 / 449.5 MB, free: 1.461 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002031/0.216, allocations: 0.933 MB / 450.4 MB, free: 0.5273 MB / 314.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.003517/0.2195, allocations: 1.228 MB / 451.6 MB, free: 15.29 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.2197, allocations: 47.95 kB / 451.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2197, allocations: 0 / 451.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.655e-05/0.2198, allocations: 27.92 kB / 451.7 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.22, allocations: 24.88 kB / 451.7 MB, free: 15.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003684/0.2204, allocations: 237 kB / 451.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002037/0.2206, allocations: 0.6887 MB / 452.6 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.2207, allocations: 19.44 kB / 452.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of SimCode: time 3.51e-07/0.2207, allocations: 0 / 452.7 MB, free: 14.2 MB / 330.7 MB Notification: Performance of Templates: time 0.02374/0.2444, allocations: 18.22 MB / 470.9 MB, free: 11.95 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.makefile (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & ./Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches