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.002972/0.002977, allocations: 188.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.151/3.151, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001665/0.001665, allocations: 98.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005739/0.0005741, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1161, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001666/0.1179, allocations: 1.043 MB / 375.6 MB, free: 14.4 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.3372/0.4551, allocations: 20.53 MB / 396.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.813e-05/0.4552, allocations: 1.188 kB / 396.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.4554, allocations: 7.5 kB / 396.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01894/0.4743, allocations: 4.174 MB / 400.3 MB, free: 8.613 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000942/0.4753, allocations: 214.7 kB / 400.5 MB, free: 8.609 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001273/0.4755, allocations: 52.11 kB / 400.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.4755, allocations: 2.734 kB / 400.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.445e-05/0.4756, allocations: 34.17 kB / 400.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.131e-05/0.4757, allocations: 33.09 kB / 400.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.034e-05/0.4757, allocations: 3.125 kB / 400.6 MB, free: 8.605 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02392/0.4997, allocations: 7.789 MB / 408.4 MB, free: 6.621 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.218e-05/0.4998, allocations: 18.58 kB / 408.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.4998, allocations: 36.45 kB / 408.5 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008913/0.5088, allocations: 2.769 MB / 411.2 MB, free: 5.238 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.5088, allocations: 1.281 kB / 411.2 MB, free: 5.238 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.975e-06/0.5089, allocations: 0 / 411.2 MB, free: 5.238 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.5089, allocations: 4 kB / 411.2 MB, free: 5.234 MB / 282.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.003726/0.5126, allocations: 0.886 MB / 412.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.5127, allocations: 9.875 kB / 412.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.042e-05/0.5127, allocations: 7.125 kB / 412.1 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/0.5129, allocations: 198.8 kB / 412.3 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.513, allocations: 2.844 kB / 412.3 MB, free: 4.309 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.513, allocations: 4 kB / 412.3 MB, free: 4.305 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.5132, allocations: 74.12 kB / 412.4 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.5132, allocations: 0 / 412.4 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.5133, allocations: 1.781 kB / 412.4 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.5133, allocations: 0 / 412.4 MB, free: 4.238 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.5135, allocations: 35.56 kB / 412.5 MB, free: 4.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002138/0.5137, allocations: 189.1 kB / 412.6 MB, free: 4.008 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004081/0.5141, allocations: 106 kB / 412.7 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.455e-05/0.5142, allocations: 9.812 kB / 412.8 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.5142, allocations: 32.09 kB / 412.8 MB, free: 3.891 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 2.214e-06/0.5143, allocations: 3.938 kB / 412.8 MB, free: 3.887 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004618/0.5147, allocations: 101.8 kB / 412.9 MB, free: 3.828 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/0.5148, allocations: 89.03 kB / 413 MB, free: 3.723 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.5149, allocations: 137.2 kB / 413.1 MB, free: 3.605 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.5149, allocations: 28.95 kB / 413.1 MB, free: 3.574 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.704e-05/0.515, allocations: 154.6 kB / 413.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.409e-05/0.515, allocations: 21.72 kB / 413.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.5151, allocations: 0 / 413.3 MB, free: 3.406 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.447e-05/0.5151, allocations: 314.8 kB / 413.6 MB, free: 3.09 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.809e-05/0.5152, allocations: 21.45 kB / 413.6 MB, free: 3.082 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.5153, allocations: 30.08 kB / 413.7 MB, free: 3.059 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.5154, allocations: 20.95 kB / 413.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5155, allocations: 0 / 413.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002699/0.5157, allocations: 81.2 kB / 413.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.5158, allocations: 6.969 kB / 413.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.5158, allocations: 0 / 413.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.5158, allocations: 0 / 413.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.5159, allocations: 17.36 kB / 413.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.516, allocations: 0 / 413.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.479e-05/0.516, allocations: 2.656 kB / 413.8 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.5161, allocations: 2.156 kB / 413.8 MB, free: 2.988 MB / 282.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 7.457e-05/0.5161, allocations: 117.1 kB / 413.9 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.5162, allocations: 6.562 kB / 413.9 MB, free: 2.863 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000344/0.5165, allocations: 105.5 kB / 414 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.5166, allocations: 7.938 kB / 414 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.5166, allocations: 0 / 414 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.5166, allocations: 2.75 kB / 414 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001447/0.5167, allocations: 179.9 kB / 414.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5168, allocations: 0.5625 kB / 414.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001037/0.5169, allocations: 8.438 kB / 414.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.5169, allocations: 3.031 kB / 414.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.5169, allocations: 4.875 kB / 414.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.5169, allocations: 3.094 kB / 414.2 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5169, allocations: 3.984 kB / 414.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.5172, allocations: 130.5 kB / 414.4 MB, free: 2.445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.55e-05/0.5173, allocations: 90.81 kB / 414.4 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.5173, allocations: 6.219 kB / 414.5 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.5175, allocations: 6.328 kB / 414.5 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.86e-05/0.5176, allocations: 10.38 kB / 414.5 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.429e-05/0.5176, allocations: 9.641 kB / 414.5 MB, free: 2.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.598e-05/0.5177, allocations: 108.2 kB / 414.6 MB, free: 2.234 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5177, allocations: 0 / 414.6 MB, free: 2.234 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003886/0.5216, allocations: 0.9158 MB / 415.5 MB, free: 2.031 MB / 282.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.007653/0.5293, allocations: 1.233 MB / 416.7 MB, free: 1.598 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003256/0.5297, allocations: 47.5 kB / 416.8 MB, free: 1.582 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5297, allocations: 4 kB / 416.8 MB, free: 1.578 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001153/0.5298, allocations: 25.7 kB / 416.8 MB, free: 1.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.5301, allocations: 15.77 kB / 416.8 MB, free: 1.562 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.5307, allocations: 249.8 kB / 417.1 MB, free: 1.285 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.5308, allocations: 0.6887 MB / 417.8 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.5309, allocations: 19.44 kB / 417.8 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5309, allocations: 0 / 417.8 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of Templates: time 0.05439/0.5853, allocations: 22.27 MB / 440 MB, free: 10.24 MB / 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/jenkins1/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