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.00163/0.00163, allocations: 192 kB / 17.37 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007693/0.0007693, allocations: 103.1 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002556, allocations: 7.984 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2025, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.001128/0.2037, allocations: 1.077 MB / 409.1 MB, free: 26.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008473/0.2122, allocations: 11.14 MB / 420.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.797e-05/0.2123, allocations: 0 / 420.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.492e-05/0.2123, allocations: 0 / 420.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002643/0.215, allocations: 0.8128 MB / 421.1 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001397/0.2164, allocations: 0.5015 MB / 421.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.996e-05/0.2165, allocations: 51.73 kB / 421.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.2165, allocations: 7.984 kB / 421.6 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.456e-05/0.2166, allocations: 31.91 kB / 421.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.335e-05/0.2166, allocations: 27.92 kB / 421.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.418e-05/0.2167, allocations: 4 kB / 421.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002545/0.2192, allocations: 1.506 MB / 423.2 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.2192, allocations: 7.938 kB / 423.2 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.2193, allocations: 53.61 kB / 423.2 MB, free: 12.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.2203, allocations: 0.7144 MB / 424 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2203, allocations: 4 kB / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2204, allocations: 0 / 424 MB, free: 11.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.2204, allocations: 0 / 424 MB, free: 11.72 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.0005709/0.2209, allocations: 0.5341 MB / 424.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.221, allocations: 11.97 kB / 424.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.2211, allocations: 12.84 kB / 424.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.511e-05/0.2212, allocations: 188.2 kB / 424.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.2212, allocations: 384 / 424.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.2212, allocations: 8.375 kB / 424.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/0.2214, allocations: 75.45 kB / 424.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.2214, allocations: 0 / 424.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.2214, allocations: 0 / 424.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.2214, allocations: 4 kB / 424.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.233e-05/0.2215, allocations: 27.91 kB / 424.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001325/0.2217, allocations: 170.6 kB / 425 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002243/0.2219, allocations: 85.12 kB / 425.1 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.446e-05/0.222, allocations: 21.78 kB / 425.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004977/0.2269, allocations: 3.29 MB / 428.4 MB, free: 6.688 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.227, allocations: 38.5 kB / 428.4 MB, free: 6.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.814e-06/0.227, allocations: 3.938 kB / 428.4 MB, free: 6.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003004/0.2273, allocations: 77.61 kB / 428.5 MB, free: 6.555 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.2274, allocations: 81.09 kB / 428.6 MB, free: 6.457 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.385e-05/0.2274, allocations: 113.8 kB / 428.7 MB, free: 6.336 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.088e-05/0.2275, allocations: 29.7 kB / 428.7 MB, free: 6.301 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.128e-05/0.2275, allocations: 88.14 kB / 428.8 MB, free: 6.211 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.2275, allocations: 15.66 kB / 428.8 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.2275, allocations: 4 kB / 428.8 MB, free: 6.191 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.567e-05/0.2276, allocations: 318.8 kB / 429.1 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.614e-05/0.2276, allocations: 8 kB / 429.1 MB, free: 5.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.57e-05/0.2277, allocations: 25.64 kB / 429.2 MB, free: 5.832 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.013e-05/0.2278, allocations: 50.06 kB / 429.2 MB, free: 5.777 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2278, allocations: 0 / 429.2 MB, free: 5.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001348/0.2279, allocations: 77.45 kB / 429.3 MB, free: 5.695 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.228, allocations: 4 kB / 429.3 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.228, allocations: 0 / 429.3 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.228, allocations: 0 / 429.3 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.606e-05/0.2281, allocations: 15.98 kB / 429.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.2281, allocations: 0 / 429.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.072e-05/0.2281, allocations: 4 kB / 429.3 MB, free: 5.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.2281, allocations: 4 kB / 429.3 MB, free: 5.668 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.263e-05/0.2282, allocations: 109.8 kB / 429.4 MB, free: 5.551 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.413e-05/0.2282, allocations: 7.938 kB / 429.4 MB, free: 5.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002248/0.2284, allocations: 113.3 kB / 429.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.2285, allocations: 0 / 429.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2285, allocations: 0 / 429.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.2285, allocations: 0 / 429.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.702e-05/0.2286, allocations: 169.6 kB / 429.7 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2286, allocations: 3.984 kB / 429.7 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.477e-05/0.2286, allocations: 11.94 kB / 429.7 MB, free: 5.199 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.2286, allocations: 0 / 429.7 MB, free: 5.199 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-06/0.2287, allocations: 8 kB / 429.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2287, allocations: 3.938 kB / 429.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.2287, allocations: 0 / 429.7 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.2288, allocations: 102 kB / 429.8 MB, free: 5.066 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.347e-05/0.2289, allocations: 97 kB / 429.9 MB, free: 4.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.2289, allocations: 11.92 kB / 429.9 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.624e-05/0.229, allocations: 0 / 429.9 MB, free: 4.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.229, allocations: 11.98 kB / 430 MB, free: 4.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.228e-06/0.2291, allocations: 8 kB / 430 MB, free: 4.922 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.431e-05/0.2291, allocations: 91.27 kB / 430.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2291, allocations: 0 / 430.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007156/0.2298, allocations: 319.7 kB / 430.4 MB, free: 4.52 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.001114/0.2309, allocations: 0.5695 MB / 430.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.2311, allocations: 43.91 kB / 431 MB, free: 3.898 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2311, allocations: 0 / 431 MB, free: 3.898 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.47e-05/0.2312, allocations: 23.92 kB / 431 MB, free: 3.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001993/0.2314, allocations: 18.33 kB / 431 MB, free: 3.859 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003587/0.2318, allocations: 219 kB / 431.2 MB, free: 3.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.184e-05/0.2319, allocations: 0.6809 MB / 431.9 MB, free: 2.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.626e-05/0.2319, allocations: 27.34 kB / 431.9 MB, free: 2.871 MB / 298.7 MB Notification: Performance of SimCode: time 3.4e-07/0.2319, allocations: 0 / 431.9 MB, free: 2.871 MB / 298.7 MB Notification: Performance of Templates: time 0.008259/0.2402, allocations: 5.934 MB / 437.9 MB, free: 12.94 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