Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001326, allocations: 117.5 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001332/0.001332, allocations: 216.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.9 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 63.91 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2366, allocations: 50.54 MB / 410.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.002303/0.2389, allocations: 1.378 MB / 411.6 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03004/0.269, allocations: 23.66 MB / 435.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.695e-05/0.269, allocations: 0 / 435.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.2691, allocations: 15.86 kB / 435.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.2835, allocations: 5.999 MB / 441.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008144/0.2843, allocations: 342.8 kB / 441.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.2844, allocations: 79.62 kB / 441.7 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.221e-05/0.2845, allocations: 8 kB / 441.7 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.194e-05/0.2845, allocations: 47.77 kB / 441.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.436e-05/0.2846, allocations: 27.91 kB / 441.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.2846, allocations: 4 kB / 441.7 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01545/0.3001, allocations: 8.896 MB / 450.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.887e-05/0.3001, allocations: 11.98 kB / 450.7 MB, free: 8.898 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.333e-05/0.3002, allocations: 27.86 kB / 450.7 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009477/0.3097, allocations: 4.389 MB / 455.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3097, allocations: 0 / 455.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3097, allocations: 0 / 455.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.595e-06/0.3097, allocations: 0 / 455.1 MB, free: 4.473 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.002888/0.3126, allocations: 0.9433 MB / 456 MB, free: 3.477 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3126, allocations: 15.97 kB / 456 MB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.3127, allocations: 8.891 kB / 456 MB, free: 3.453 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.3129, allocations: 207.8 kB / 456.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.3129, allocations: 4 kB / 456.2 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.3129, allocations: 0 / 456.2 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3131, allocations: 79.33 kB / 456.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.3131, allocations: 3.984 kB / 456.3 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3131, allocations: 0 / 456.3 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.3131, allocations: 0 / 456.3 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.3132, allocations: 35.97 kB / 456.4 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002308/0.3135, allocations: 186.5 kB / 456.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.3138, allocations: 97.17 kB / 456.6 MB, free: 2.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.477e-05/0.3139, allocations: 33.7 kB / 456.7 MB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.074e-05/0.3139, allocations: 8 kB / 456.7 MB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/0.314, allocations: 38.48 kB / 456.7 MB, free: 2.637 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.314, allocations: 0 / 456.7 MB, free: 2.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003245/0.3143, allocations: 101.6 kB / 456.8 MB, free: 2.531 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.3144, allocations: 81.05 kB / 456.9 MB, free: 2.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.3145, allocations: 145.8 kB / 457 MB, free: 2.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.3145, allocations: 25.7 kB / 457.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.378e-05/0.3146, allocations: 84.14 kB / 457.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/0.3146, allocations: 27.78 kB / 457.2 MB, free: 2.137 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.063e-05/0.3146, allocations: 17.72 kB / 457.2 MB, free: 2.113 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3148, allocations: 318.8 kB / 457.5 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.289e-05/0.3148, allocations: 19.98 kB / 457.5 MB, free: 1.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.211e-05/0.3149, allocations: 29.7 kB / 457.5 MB, free: 1.738 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.315, allocations: 57.62 kB / 457.6 MB, free: 1.676 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.315, allocations: 0 / 457.6 MB, free: 1.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001856/0.3152, allocations: 74.09 kB / 457.7 MB, free: 1.598 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3152, allocations: 8 kB / 457.7 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3153, allocations: 0 / 457.7 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3153, allocations: 0 / 457.7 MB, free: 1.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.806e-05/0.3153, allocations: 15.92 kB / 457.7 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.441e-06/0.3154, allocations: 8 kB / 457.7 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.361e-05/0.3154, allocations: 3.953 kB / 457.7 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3154, allocations: 11.92 kB / 457.7 MB, free: 1.551 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 9.359e-05/0.3155, allocations: 117.7 kB / 457.8 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.721e-05/0.3155, allocations: 8.031 kB / 457.8 MB, free: 1.418 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.3158, allocations: 101.5 kB / 457.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.3158, allocations: 0 / 457.9 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3158, allocations: 4 kB / 457.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3158, allocations: 0 / 457.9 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.316, allocations: 189.5 kB / 458.1 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.316, allocations: 0 / 458.1 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.248e-05/0.316, allocations: 12 kB / 458.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.316, allocations: 0 / 458.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.316, allocations: 0 / 458.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.316, allocations: 0 / 458.1 MB, free: 1.062 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.487e-06/0.316, allocations: 4.125 kB / 458.1 MB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.3163, allocations: 121.8 kB / 458.3 MB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.367e-05/0.3163, allocations: 92.98 kB / 458.4 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.3164, allocations: 3.984 kB / 458.4 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.414e-05/0.3164, allocations: 0 / 458.4 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.89e-05/0.3165, allocations: 11.98 kB / 458.4 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.265e-06/0.3165, allocations: 4 kB / 458.4 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.275e-05/0.3166, allocations: 111.6 kB / 458.5 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3166, allocations: 4 kB / 458.5 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00249/0.3191, allocations: 0.9586 MB / 459.4 MB, free: 15.71 MB / 382.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.004191/0.3233, allocations: 1.345 MB / 460.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000226/0.3235, allocations: 43.91 kB / 460.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.3235, allocations: 8 kB / 460.8 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.581e-05/0.3236, allocations: 27.92 kB / 460.9 MB, free: 14.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.3238, allocations: 12.06 kB / 460.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004378/0.3242, allocations: 176.5 kB / 461.1 MB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.3245, allocations: 0.6924 MB / 461.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.187e-05/0.3246, allocations: 7.984 kB / 461.8 MB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/0.3246, allocations: 15.44 kB / 461.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3246, allocations: 0 / 461.8 MB, free: 13.33 MB / 382.1 MB Notification: Performance of Templates: time 0.04008/0.3647, allocations: 27.27 MB / 489 MB, free: 2.039 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & ./Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches