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.001349/0.001349, allocations: 114.6 kB / 17.28 MB, free: 6.219 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.001434/0.001435, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.324/1.324, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 58.89 kB / 300.8 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09366/0.09491, allocations: 49.44 MB / 350.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.00283/0.09778, allocations: 1.437 MB / 351.7 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.2119/0.3097, allocations: 23.63 MB / 375.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.887e-05/0.3098, allocations: 2.438 kB / 375.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.31, allocations: 2.344 kB / 375.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01709/0.3271, allocations: 5.385 MB / 380.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.3283, allocations: 322.3 kB / 381 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.3285, allocations: 73.03 kB / 381.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.005e-05/0.3286, allocations: 3.906 kB / 381.1 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.441e-05/0.3286, allocations: 41.22 kB / 381.1 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.3288, allocations: 39.72 kB / 381.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.3288, allocations: 3.031 kB / 381.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02066/0.3494, allocations: 8.797 MB / 390 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.3496, allocations: 18.91 kB / 390 MB, free: 6.852 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.122e-05/0.3496, allocations: 30.58 kB / 390 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007684/0.3573, allocations: 2.961 MB / 393 MB, free: 5.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.368e-06/0.3574, allocations: 0 / 393 MB, free: 5.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.3574, allocations: 0 / 393 MB, free: 5.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.3574, allocations: 1.375 kB / 393 MB, free: 5.422 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.003605/0.361, allocations: 0.9064 MB / 393.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.3611, allocations: 7.312 kB / 393.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.667e-05/0.3612, allocations: 8.844 kB / 393.9 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.3613, allocations: 200.7 kB / 394.1 MB, free: 4.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.3614, allocations: 7.938 kB / 394.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.3614, allocations: 2.875 kB / 394.1 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.3616, allocations: 74.52 kB / 394.2 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3616, allocations: 0 / 394.2 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.3616, allocations: 3.75 kB / 394.2 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3616, allocations: 0 / 394.2 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001204/0.3617, allocations: 36.44 kB / 394.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.3619, allocations: 193.2 kB / 394.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.3622, allocations: 96.05 kB / 394.5 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.401e-05/0.3623, allocations: 33.2 kB / 394.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.008e-05/0.3624, allocations: 11.3 kB / 394.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.3624, allocations: 40.03 kB / 394.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.3624, allocations: 0 / 394.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003401/0.3628, allocations: 100.7 kB / 394.7 MB, free: 3.984 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.155e-05/0.3628, allocations: 85.86 kB / 394.7 MB, free: 3.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3629, allocations: 139.3 kB / 394.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.363, allocations: 25.7 kB / 394.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.363, allocations: 94.41 kB / 395 MB, free: 3.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.363, allocations: 14.34 kB / 395 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.3631, allocations: 18.72 kB / 395 MB, free: 3.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.185e-05/0.3631, allocations: 324.6 kB / 395.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.728e-05/0.3632, allocations: 15.52 kB / 395.4 MB, free: 3.281 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-05/0.3633, allocations: 31.77 kB / 395.4 MB, free: 3.258 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.3634, allocations: 55.61 kB / 395.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.3634, allocations: 0 / 395.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001658/0.3636, allocations: 76.89 kB / 395.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.3636, allocations: 5.469 kB / 395.5 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3636, allocations: 7.922 kB / 395.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3636, allocations: 1.906 kB / 395.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.516e-05/0.3637, allocations: 17.59 kB / 395.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.072e-06/0.3637, allocations: 0 / 395.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.426e-05/0.3638, allocations: 1.938 kB / 395.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.3638, allocations: 6.031 kB / 395.6 MB, free: 3.16 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 6.577e-05/0.3638, allocations: 118.7 kB / 395.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.465e-05/0.3639, allocations: 10.84 kB / 395.7 MB, free: 3.031 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002302/0.3641, allocations: 91.84 kB / 395.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.3641, allocations: 2.812 kB / 395.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.3641, allocations: 0 / 395.8 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3642, allocations: 7.922 kB / 395.8 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.3643, allocations: 181.7 kB / 396 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3643, allocations: 4 kB / 396 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.713e-05/0.3643, allocations: 12.58 kB / 396 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.3644, allocations: 2.812 kB / 396 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.3644, allocations: 0 / 396 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3644, allocations: 0 / 396 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3644, allocations: 2.719 kB / 396 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001789/0.3646, allocations: 121.3 kB / 396.1 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.396e-05/0.3646, allocations: 91.34 kB / 396.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.3647, allocations: 4 kB / 396.2 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.624e-05/0.3647, allocations: 6.875 kB / 396.2 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.3648, allocations: 6.953 kB / 396.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.186e-06/0.3648, allocations: 2.531 kB / 396.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.431e-05/0.3649, allocations: 111.5 kB / 396.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3649, allocations: 3.094 kB / 396.3 MB, free: 2.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.003666/0.3685, allocations: 0.9303 MB / 397.3 MB, free: 2.238 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.006372/0.3749, allocations: 1.336 MB / 398.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002625/0.3752, allocations: 51.84 kB / 398.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.3752, allocations: 0 / 398.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.005e-05/0.3753, allocations: 31.92 kB / 398.7 MB, free: 1.641 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.3756, allocations: 23.22 kB / 398.7 MB, free: 1.621 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00046/0.3761, allocations: 220.9 kB / 398.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.3763, allocations: 0.6922 MB / 399.6 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.63e-05/0.3763, allocations: 19.44 kB / 399.6 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3763, allocations: 3.938 kB / 399.6 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of Templates: time 0.03073/0.4071, allocations: 18.17 MB / 417.8 MB, free: 14.44 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