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.001296/0.001296, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007217/0.0007218, allocations: 103.7 kB / 296.4 MB, free: 7.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001933/0.0001933, allocations: 12 kB / 356.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.1748, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.0009096/0.1758, allocations: 1.075 MB / 408.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007126/0.1829, allocations: 11.12 MB / 419.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.606e-05/0.1829, allocations: 7.875 kB / 419.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.183, allocations: 7.984 kB / 419.7 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001472/0.1844, allocations: 0.7972 MB / 420.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006883/0.1851, allocations: 477.7 kB / 421 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.224e-05/0.1852, allocations: 51.72 kB / 421 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.1852, allocations: 4 kB / 421 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.383e-05/0.1853, allocations: 27.91 kB / 421 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.23e-05/0.1853, allocations: 31.91 kB / 421.1 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.326e-05/0.1854, allocations: 4 kB / 421.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.187, allocations: 1.378 MB / 422.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.187, allocations: 11.92 kB / 422.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.65e-05/0.187, allocations: 33.7 kB / 422.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000614/0.1876, allocations: 0.6754 MB / 423.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1876, allocations: 0 / 423.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1876, allocations: 0 / 423.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1877, allocations: 0 / 423.2 MB, free: 12.11 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.0004462/0.1881, allocations: 0.534 MB / 423.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.777e-05/0.1881, allocations: 8.031 kB / 423.7 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.613e-05/0.1882, allocations: 15.89 kB / 423.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.574e-05/0.1883, allocations: 175 kB / 423.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.1884, allocations: 7.938 kB / 423.9 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.1884, allocations: 8 kB / 423.9 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.1885, allocations: 67.33 kB / 424 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.032e-06/0.1885, allocations: 0 / 424 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.1885, allocations: 0 / 424 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1885, allocations: 4 kB / 424 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.989e-05/0.1886, allocations: 19.98 kB / 424 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.1888, allocations: 182.5 kB / 424.2 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.189, allocations: 85.08 kB / 424.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.244e-05/0.189, allocations: 25.77 kB / 424.3 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005191/0.1942, allocations: 3.286 MB / 427.6 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.1943, allocations: 38.5 kB / 427.6 MB, free: 7.035 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.734e-06/0.1943, allocations: 0 / 427.6 MB, free: 7.035 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002435/0.1945, allocations: 85.86 kB / 427.7 MB, free: 6.945 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.917e-05/0.1945, allocations: 77.11 kB / 427.8 MB, free: 6.852 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.35e-05/0.1946, allocations: 117.8 kB / 427.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.1946, allocations: 25.7 kB / 427.9 MB, free: 6.695 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.703e-05/0.1947, allocations: 88.14 kB / 428 MB, free: 6.605 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.316e-05/0.1947, allocations: 19.64 kB / 428 MB, free: 6.586 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-06/0.1947, allocations: 0 / 428 MB, free: 6.586 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.632e-05/0.1947, allocations: 318.8 kB / 428.3 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.778e-05/0.1948, allocations: 7.984 kB / 428.3 MB, free: 6.258 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.414e-05/0.1948, allocations: 29.66 kB / 428.4 MB, free: 6.223 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.788e-05/0.1949, allocations: 20.02 kB / 428.4 MB, free: 6.203 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1949, allocations: 0 / 428.4 MB, free: 6.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001314/0.195, allocations: 73.56 kB / 428.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.1951, allocations: 8 kB / 428.5 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1951, allocations: 0 / 428.5 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.1951, allocations: 0 / 428.5 MB, free: 6.117 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.951e-05/0.1951, allocations: 11.98 kB / 428.5 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1952, allocations: 4 kB / 428.5 MB, free: 6.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.869e-05/0.1952, allocations: 7.906 kB / 428.5 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.1952, allocations: 4 kB / 428.5 MB, free: 6.09 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 4.754e-05/0.1953, allocations: 113.8 kB / 428.6 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.1953, allocations: 7.953 kB / 428.6 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.1955, allocations: 105.5 kB / 428.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1955, allocations: 0 / 428.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1955, allocations: 0 / 428.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1955, allocations: 0 / 428.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.444e-05/0.1956, allocations: 177.5 kB / 428.9 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1956, allocations: 0 / 428.9 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.342e-05/0.1957, allocations: 11.98 kB / 428.9 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1957, allocations: 0 / 428.9 MB, free: 5.621 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.715e-06/0.1957, allocations: 7.953 kB / 428.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1957, allocations: 0 / 428.9 MB, free: 5.613 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1957, allocations: 7.938 kB / 428.9 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.1959, allocations: 97.97 kB / 429 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.1959, allocations: 89 kB / 429.1 MB, free: 5.383 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.1959, allocations: 4 kB / 429.1 MB, free: 5.379 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.996e-05/0.196, allocations: 11.88 kB / 429.1 MB, free: 5.367 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.443e-05/0.196, allocations: 4.188 kB / 429.1 MB, free: 5.363 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.1961, allocations: 19.98 kB / 429.1 MB, free: 5.344 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.91e-05/0.1961, allocations: 87.28 kB / 429.2 MB, free: 5.258 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1961, allocations: 0 / 429.2 MB, free: 5.258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005425/0.1966, allocations: 319.7 kB / 429.5 MB, free: 4.945 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.0008056/0.1975, allocations: 0.5655 MB / 430.1 MB, free: 4.371 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.1976, allocations: 35.97 kB / 430.1 MB, free: 4.336 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1976, allocations: 0 / 430.1 MB, free: 4.336 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.216e-05/0.1977, allocations: 23.92 kB / 430.2 MB, free: 4.312 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001635/0.1978, allocations: 12 kB / 430.2 MB, free: 4.301 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002975/0.1981, allocations: 211.1 kB / 430.4 MB, free: 4.055 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.251e-05/0.1982, allocations: 0.6886 MB / 431.1 MB, free: 3.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.78e-05/0.1983, allocations: 31.34 kB / 431.1 MB, free: 3.309 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1983, allocations: 0 / 431.1 MB, free: 3.309 MB / 298.7 MB Notification: Performance of Templates: time 0.006551/0.2048, allocations: 5.927 MB / 437 MB, free: 13.38 MB / 314.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/jenkins/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