Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001221/0.001221, allocations: 203.8 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.00105, allocations: 56.14 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2398/0.2409, allocations: 50.54 MB / 409.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002121/0.243, allocations: 1.377 MB / 410.6 MB, free: 216 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02691/0.27, allocations: 23.6 MB / 434.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.853e-05/0.2701, allocations: 0 / 434.2 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.2703, allocations: 7.875 kB / 434.2 MB, free: 8.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0152/0.2855, allocations: 5.993 MB / 440.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007739/0.2863, allocations: 334.8 kB / 440.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.2864, allocations: 75.7 kB / 440.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.2865, allocations: 7.938 kB / 440.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.064e-05/0.2865, allocations: 35.84 kB / 440.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.2866, allocations: 43.83 kB / 440.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.2867, allocations: 4 kB / 440.7 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01535/0.302, allocations: 8.89 MB / 449.6 MB, free: 9.133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.658e-05/0.3021, allocations: 11.98 kB / 449.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.87e-05/0.3022, allocations: 31.86 kB / 449.6 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.313, allocations: 4.379 MB / 454 MB, free: 4.703 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3131, allocations: 0 / 454 MB, free: 4.703 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3131, allocations: 4 kB / 454 MB, free: 4.699 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.3131, allocations: 0 / 454 MB, free: 4.699 MB / 366.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.002978/0.3161, allocations: 0.9085 MB / 454.9 MB, free: 3.742 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3161, allocations: 8.031 kB / 454.9 MB, free: 3.734 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.818e-05/0.3162, allocations: 16.83 kB / 454.9 MB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.3164, allocations: 195.8 kB / 455.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.3164, allocations: 0 / 455.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.3164, allocations: 8 kB / 455.1 MB, free: 3.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001722/0.3166, allocations: 75.31 kB / 455.2 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.3166, allocations: 4 kB / 455.2 MB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.3166, allocations: 0 / 455.2 MB, free: 3.391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.3166, allocations: 3.938 kB / 455.2 MB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.3168, allocations: 35.98 kB / 455.3 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000248/0.317, allocations: 190.5 kB / 455.4 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003435/0.3174, allocations: 101.1 kB / 455.5 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.553e-05/0.3175, allocations: 33.77 kB / 455.6 MB, free: 2.957 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.414e-05/0.3175, allocations: 11.98 kB / 455.6 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3176, allocations: 38.5 kB / 455.6 MB, free: 2.898 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.3176, allocations: 0 / 455.6 MB, free: 2.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003119/0.3179, allocations: 97.56 kB / 455.7 MB, free: 2.797 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.3179, allocations: 89.03 kB / 455.8 MB, free: 2.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.3181, allocations: 137.8 kB / 455.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.3181, allocations: 25.7 kB / 456 MB, free: 2.516 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.506e-05/0.3181, allocations: 88.14 kB / 456.1 MB, free: 2.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.3182, allocations: 11.81 kB / 456.1 MB, free: 2.414 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.3182, allocations: 25.7 kB / 456.1 MB, free: 2.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.3183, allocations: 314.8 kB / 456.4 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.412e-05/0.3184, allocations: 19.98 kB / 456.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.321e-05/0.3184, allocations: 33.7 kB / 456.5 MB, free: 2.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001223/0.3186, allocations: 49.64 kB / 456.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3186, allocations: 0 / 456.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001797/0.3188, allocations: 85.56 kB / 456.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.3188, allocations: 6.656 kB / 456.6 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3188, allocations: 0 / 456.6 MB, free: 1.859 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.3188, allocations: 4.375 kB / 456.6 MB, free: 1.855 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.544e-05/0.3189, allocations: 11.94 kB / 456.6 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3189, allocations: 4 kB / 456.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.303e-05/0.319, allocations: 7.984 kB / 456.6 MB, free: 1.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.319, allocations: 3.938 kB / 456.6 MB, free: 1.828 MB / 366.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 7.662e-05/0.3191, allocations: 125.7 kB / 456.7 MB, free: 1.695 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.3191, allocations: 7.906 kB / 456.8 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002351/0.3193, allocations: 97.48 kB / 456.8 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3193, allocations: 0 / 456.8 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.3194, allocations: 4.562 kB / 456.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.3194, allocations: 4 kB / 456.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.3195, allocations: 177.6 kB / 457 MB, free: 1.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3195, allocations: 3.938 kB / 457 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.269e-05/0.3196, allocations: 15.98 kB / 457 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3196, allocations: 0 / 457 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-06/0.3196, allocations: 4 kB / 457.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3196, allocations: 128 / 457.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.3196, allocations: 4 kB / 457.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002003/0.3198, allocations: 121.7 kB / 457.2 MB, free: 1.188 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.631e-05/0.3199, allocations: 89.09 kB / 457.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.3199, allocations: 0 / 457.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.87e-05/0.32, allocations: 7.984 kB / 457.3 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.32, allocations: 8 kB / 457.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.301e-06/0.3201, allocations: 0 / 457.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.645e-05/0.3201, allocations: 115.2 kB / 457.4 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3201, allocations: 4 kB / 457.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002392/0.3225, allocations: 0.9486 MB / 458.3 MB, free: 0 / 366.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.003651/0.3262, allocations: 1.329 MB / 459.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002001/0.3264, allocations: 47.91 kB / 459.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3264, allocations: 0 / 459.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.381e-05/0.3265, allocations: 35.92 kB / 459.8 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.3267, allocations: 20.03 kB / 459.8 MB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003973/0.3271, allocations: 180.4 kB / 460 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.3274, allocations: 0.6885 MB / 460.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.617e-05/0.3274, allocations: 8.359 kB / 460.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.3275, allocations: 15.44 kB / 460.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3275, allocations: 0 / 460.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of Templates: time 0.03528/0.3627, allocations: 27.26 MB / 487.9 MB, free: 2.332 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & ./Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches