Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 90.11 kB / 17.31 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 179.6 kB / 18.22 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 223.3 MB / 242.3 MB, free: 14.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002694, allocations: 11.94 kB / 302.1 MB, free: 5.855 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08711/0.0874, allocations: 50.41 MB / 352.5 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.001339/0.08878, allocations: 1.087 MB / 353.6 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.1967/0.2855, allocations: 24.93 MB / 378.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.961e-05/0.2856, allocations: 0 / 378.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.2857, allocations: 7.938 kB / 378.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01755/0.3033, allocations: 4.925 MB / 383.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.3046, allocations: 317.3 kB / 383.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000215/0.3048, allocations: 98.97 kB / 383.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.067e-05/0.3049, allocations: 2.281 kB / 383.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.318e-05/0.305, allocations: 30.66 kB / 383.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.3051, allocations: 39.92 kB / 383.9 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.612e-05/0.3052, allocations: 9.891 kB / 383.9 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02029/0.3255, allocations: 8.899 MB / 392.8 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.425e-05/0.3256, allocations: 18.73 kB / 392.8 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.336e-05/0.3257, allocations: 54.86 kB / 392.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006529/0.3322, allocations: 2.937 MB / 395.8 MB, free: 5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3322, allocations: 0 / 395.8 MB, free: 5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3322, allocations: 0 / 395.8 MB, free: 5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.3323, allocations: 1 kB / 395.8 MB, free: 5 MB / 302.1 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.002734/0.335, allocations: 0.9005 MB / 396.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.335, allocations: 8.844 kB / 396.7 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.3351, allocations: 6.938 kB / 396.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/0.3352, allocations: 192 kB / 396.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/0.3353, allocations: 11.12 kB / 397 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.294e-05/0.3353, allocations: 1.078 kB / 397 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001653/0.3355, allocations: 73.92 kB / 397 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3355, allocations: 0 / 397 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.3355, allocations: 11.16 kB / 397 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3355, allocations: 0 / 397 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.3356, allocations: 31.06 kB / 397.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.3358, allocations: 193.8 kB / 397.3 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.3361, allocations: 97.44 kB / 397.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.486e-05/0.3362, allocations: 37.17 kB / 397.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-05/0.3362, allocations: 16.53 kB / 397.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.3363, allocations: 41.5 kB / 397.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.3363, allocations: 0 / 397.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002737/0.3365, allocations: 95.5 kB / 397.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/0.3366, allocations: 83.86 kB / 397.6 MB, free: 3.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.197e-05/0.3367, allocations: 133.8 kB / 397.7 MB, free: 3.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.3367, allocations: 29.7 kB / 397.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.3367, allocations: 82.89 kB / 397.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.3368, allocations: 21.92 kB / 397.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.3368, allocations: 12.72 kB / 397.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.162e-05/0.3368, allocations: 322.8 kB / 398.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.188e-05/0.3369, allocations: 13.84 kB / 398.2 MB, free: 2.867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.119e-05/0.3369, allocations: 34.36 kB / 398.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.3371, allocations: 54.72 kB / 398.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3371, allocations: 2.188 kB / 398.3 MB, free: 2.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001524/0.3372, allocations: 74.39 kB / 398.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.3372, allocations: 5.938 kB / 398.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3373, allocations: 0 / 398.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.3373, allocations: 2.75 kB / 398.4 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.021e-05/0.3373, allocations: 21.61 kB / 398.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.3374, allocations: 1.016 kB / 398.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.127e-05/0.3374, allocations: 10.91 kB / 398.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.782e-06/0.3374, allocations: 0 / 398.4 MB, free: 2.738 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.71e-05/0.3375, allocations: 121.6 kB / 398.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.591e-05/0.3375, allocations: 2.719 kB / 398.5 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002121/0.3377, allocations: 106.8 kB / 398.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3377, allocations: 7.094 kB / 398.7 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.3377, allocations: 0 / 398.7 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3377, allocations: 4.5 kB / 398.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.932e-05/0.3379, allocations: 180.5 kB / 398.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3379, allocations: 0 / 398.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.099e-05/0.3379, allocations: 10.47 kB / 398.8 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3379, allocations: 3.375 kB / 398.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.3379, allocations: 4 kB / 398.9 MB, free: 2.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3379, allocations: 3.938 kB / 398.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.542e-06/0.338, allocations: 2.625 kB / 398.9 MB, free: 2.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001657/0.3381, allocations: 122.5 kB / 399 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.086e-05/0.3382, allocations: 90.84 kB / 399.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.3382, allocations: 3.938 kB / 399.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.102e-05/0.3383, allocations: 9.141 kB / 399.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.872e-05/0.3383, allocations: 3.406 kB / 399.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.216e-06/0.3384, allocations: 6.797 kB / 399.1 MB, free: 2.102 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.028e-05/0.3384, allocations: 112.4 kB / 399.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3384, allocations: 0 / 399.2 MB, free: 2.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.002946/0.3414, allocations: 0.9363 MB / 400.1 MB, free: 1.801 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005564/0.3469, allocations: 1.315 MB / 401.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002213/0.3472, allocations: 55.84 kB / 401.5 MB, free: 1.098 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3472, allocations: 0 / 401.5 MB, free: 1.098 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.757e-05/0.3473, allocations: 35.86 kB / 401.5 MB, free: 1.062 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.3476, allocations: 12.28 kB / 401.6 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.348, allocations: 241.5 kB / 401.8 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.3481, allocations: 0.6809 MB / 402.5 MB, free: 80 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.3482, allocations: 19.42 kB / 402.5 MB, free: 60 kB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3482, allocations: 0 / 402.5 MB, free: 60 kB / 302.1 MB Notification: Performance of Templates: time 0.02862/0.3768, allocations: 18.17 MB / 420.7 MB, free: 13.87 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & ./Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches