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: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 108.1 kB / 17.06 MB, free: 5.82 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.001327/0.001327, allocations: 195.9 kB / 18 MB, free: 4.965 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 47.91 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2524, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.00317/0.2556, allocations: 1.37 MB / 401.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03197/0.2876, allocations: 23.53 MB / 425.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.879e-05/0.2877, allocations: 4 kB / 425.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.2878, allocations: 7.938 kB / 425.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01457/0.3024, allocations: 5.97 MB / 431.1 MB, free: 9.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007979/0.3033, allocations: 346.8 kB / 431.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001354/0.3034, allocations: 75.69 kB / 431.5 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.3035, allocations: 7.938 kB / 431.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.509e-05/0.3035, allocations: 31.91 kB / 431.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.684e-05/0.3036, allocations: 39.88 kB / 431.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.516e-05/0.3037, allocations: 4 kB / 431.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01628/0.3199, allocations: 8.855 MB / 440.5 MB, free: 492 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.601e-05/0.32, allocations: 19.91 kB / 440.5 MB, free: 472 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.527e-05/0.3201, allocations: 31.86 kB / 440.5 MB, free: 440 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009992/0.3301, allocations: 4.377 MB / 444.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3301, allocations: 0 / 444.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3301, allocations: 0 / 444.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.3302, allocations: 0 / 444.9 MB, free: 12.04 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.002082/0.3322, allocations: 0.9355 MB / 445.8 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3323, allocations: 11.89 kB / 445.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.918e-05/0.3323, allocations: 38.73 kB / 445.9 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.3324, allocations: 4.938 kB / 445.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001965/0.3326, allocations: 195.6 kB / 446.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.3326, allocations: 4 kB / 446.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.3326, allocations: 11.92 kB / 446.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001717/0.3328, allocations: 71.39 kB / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.3328, allocations: 0 / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.3328, allocations: 0 / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3329, allocations: 0 / 446.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.333, allocations: 39.91 kB / 446.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002269/0.3332, allocations: 198.4 kB / 446.4 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.3335, allocations: 97.16 kB / 446.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.703e-05/0.3336, allocations: 29.77 kB / 446.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.793e-05/0.3337, allocations: 12 kB / 446.5 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/0.3337, allocations: 42.48 kB / 446.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.3337, allocations: 0 / 446.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003267/0.3341, allocations: 97.59 kB / 446.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.3341, allocations: 77.11 kB / 446.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001358/0.3343, allocations: 137.8 kB / 446.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.3343, allocations: 29.7 kB / 446.9 MB, free: 9.793 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.369e-05/0.3344, allocations: 84.14 kB / 447 MB, free: 9.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.118e-05/0.3344, allocations: 31.83 kB / 447 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.3345, allocations: 13.72 kB / 447 MB, free: 9.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3346, allocations: 318.8 kB / 447.3 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.435e-05/0.3347, allocations: 19.92 kB / 447.4 MB, free: 9.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.247e-05/0.3347, allocations: 37.7 kB / 447.4 MB, free: 9.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.3349, allocations: 57.62 kB / 447.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3349, allocations: 0 / 447.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002003/0.3351, allocations: 81.62 kB / 447.5 MB, free: 9.125 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.3351, allocations: 4 kB / 447.5 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3351, allocations: 4 kB / 447.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.3352, allocations: 0 / 447.5 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.014e-05/0.3352, allocations: 15.92 kB / 447.6 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.327e-06/0.3353, allocations: 3.984 kB / 447.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.222e-05/0.3353, allocations: 7.938 kB / 447.6 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.3353, allocations: 0 / 447.6 MB, free: 9.09 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.624e-05/0.3354, allocations: 121.8 kB / 447.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.3355, allocations: 7.953 kB / 447.7 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.3357, allocations: 102 kB / 447.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.3357, allocations: 4 kB / 447.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3357, allocations: 0 / 447.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.3358, allocations: 384 / 447.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001618/0.3359, allocations: 177.6 kB / 448 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3359, allocations: 0 / 448 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.983e-05/0.336, allocations: 12 kB / 448 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.336, allocations: 7.938 kB / 448 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.144e-05/0.336, allocations: 4 kB / 448 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.336, allocations: 0 / 448 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.336, allocations: 0 / 448 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002228/0.3363, allocations: 113.8 kB / 448.1 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.305e-05/0.3364, allocations: 93.09 kB / 448.2 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.3364, allocations: 7.984 kB / 448.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.09e-05/0.3365, allocations: 0 / 448.2 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.3365, allocations: 4 kB / 448.2 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.3365, allocations: 12.17 kB / 448.2 MB, free: 8.336 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.997e-05/0.3366, allocations: 111.2 kB / 448.3 MB, free: 8.227 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3366, allocations: 0 / 448.3 MB, free: 8.227 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002492/0.3391, allocations: 0.9469 MB / 449.3 MB, free: 7.277 MB / 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.004656/0.3438, allocations: 1.892 MB / 451.2 MB, free: 5.355 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002242/0.344, allocations: 51.91 kB / 451.2 MB, free: 5.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3441, allocations: 0 / 451.2 MB, free: 5.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.17e-05/0.3441, allocations: 28.27 kB / 451.2 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002357/0.3444, allocations: 24.31 kB / 451.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.3469, allocations: 1.803 MB / 453.1 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.3473, allocations: 0.6807 MB / 453.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.295e-05/0.3473, allocations: 11.98 kB / 453.8 MB, free: 2.637 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.38e-05/0.3474, allocations: 23.44 kB / 453.8 MB, free: 2.613 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3474, allocations: 4 kB / 453.8 MB, free: 2.609 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06307/0.4105, allocations: 29.26 MB / 483.1 MB, free: 5.406 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.222/9.633, allocations: 10.45 kB / 483.1 MB, free: 5.398 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX.fmu > 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.csv","/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