Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",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.001594/0.001594, allocations: 106.1 kB / 16.92 MB, free: 6.148 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.001816/0.001817, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.208/2.208, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 47.22 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1642, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.004293/0.1686, allocations: 1.36 MB / 351.5 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02179/0.1904, allocations: 12.08 MB / 363.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.856e-05/0.1906, allocations: 0 / 363.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.309e-05/0.1906, allocations: 7.938 kB / 363.6 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005656/0.1964, allocations: 1.046 MB / 364.6 MB, free: 5.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003123/0.1995, allocations: 0.6335 MB / 365.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.1997, allocations: 63.66 kB / 365.3 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.918e-05/0.1998, allocations: 4 kB / 365.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.1999, allocations: 27.91 kB / 365.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.2001, allocations: 43.83 kB / 365.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.2001, allocations: 0 / 365.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00595/0.2061, allocations: 1.565 MB / 367 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.946e-05/0.2061, allocations: 8 kB / 367 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.345e-05/0.2062, allocations: 31.78 kB / 367 MB, free: 3.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0044/0.2106, allocations: 1.064 MB / 368.1 MB, free: 2.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.101e-05/0.2107, allocations: 4 kB / 368.1 MB, free: 2.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.2107, allocations: 7.938 kB / 368.1 MB, free: 2.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.2107, allocations: 0 / 368.1 MB, free: 2.32 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.001453/0.2122, allocations: 0.5341 MB / 368.6 MB, free: 1.738 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.371e-05/0.2123, allocations: 16.02 kB / 368.6 MB, free: 1.723 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.569e-05/0.2123, allocations: 30.75 kB / 368.7 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.2125, allocations: 8.844 kB / 368.7 MB, free: 1.676 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.2129, allocations: 184.3 kB / 368.9 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.2129, allocations: 384 / 368.9 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.118e-05/0.213, allocations: 8.375 kB / 368.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.2132, allocations: 71.27 kB / 368.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.2132, allocations: 0 / 368.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.2133, allocations: 0 / 368.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.2133, allocations: 4 kB / 368.9 MB, free: 1.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001618/0.2134, allocations: 23.97 kB / 369 MB, free: 1.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002718/0.2137, allocations: 174.6 kB / 369.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004144/0.2142, allocations: 81.12 kB / 369.2 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.2143, allocations: 21.78 kB / 369.2 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2685/0.4828, allocations: 3.301 MB / 372.5 MB, free: 24.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.343e-05/0.4829, allocations: 32.53 kB / 372.6 MB, free: 24.75 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 4.167e-06/0.4829, allocations: 0 / 372.6 MB, free: 24.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005252/0.4834, allocations: 89.89 kB / 372.7 MB, free: 24.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.4835, allocations: 84.77 kB / 372.7 MB, free: 24.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001403/0.4837, allocations: 113.9 kB / 372.9 MB, free: 24.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.4837, allocations: 26.33 kB / 372.9 MB, free: 24.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.522e-05/0.4837, allocations: 86.58 kB / 373 MB, free: 24.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.03e-05/0.4838, allocations: 21.23 kB / 373 MB, free: 24.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.4839, allocations: 19.48 kB / 373 MB, free: 24.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.322e-05/0.4839, allocations: 317.8 kB / 373.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-05/0.484, allocations: 8.766 kB / 373.3 MB, free: 24.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-05/0.4841, allocations: 29.72 kB / 373.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.4843, allocations: 41.48 kB / 373.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.4843, allocations: 0.875 kB / 373.4 MB, free: 24.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002524/0.4846, allocations: 73.03 kB / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.4846, allocations: 7.656 kB / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.4846, allocations: 2.891 kB / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.393e-05/0.4847, allocations: 1.219 kB / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.4848, allocations: 15.64 kB / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.4848, allocations: 0 / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.418e-05/0.4849, allocations: 5.438 kB / 373.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.4849, allocations: 5.25 kB / 373.5 MB, free: 24 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 0.0001031/0.485, allocations: 114.1 kB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.022e-05/0.4851, allocations: 8.266 kB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004179/0.4855, allocations: 107.2 kB / 373.7 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.4855, allocations: 1.406 kB / 373.7 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-06/0.4856, allocations: 1.844 kB / 373.7 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.4856, allocations: 0 / 373.7 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.4858, allocations: 173.8 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.4858, allocations: 1.125 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.4859, allocations: 15.69 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.486, allocations: 0.5312 kB / 373.9 MB, free: 23.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.486, allocations: 5.281 kB / 373.9 MB, free: 23.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.486, allocations: 2.984 kB / 373.9 MB, free: 23.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.486, allocations: 0 / 373.9 MB, free: 23.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003459/0.4864, allocations: 112.3 kB / 374 MB, free: 23.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.489e-05/0.4865, allocations: 88 kB / 374.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.4865, allocations: 8.844 kB / 374.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.4867, allocations: 6.531 kB / 374.1 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.571e-05/0.4868, allocations: 6.625 kB / 374.1 MB, free: 23.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.4868, allocations: 3.672 kB / 374.1 MB, free: 23.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.356e-05/0.4869, allocations: 94.64 kB / 374.2 MB, free: 23.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.4869, allocations: 0 / 374.2 MB, free: 23.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001875/0.4888, allocations: 315 kB / 374.5 MB, free: 23.37 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.002958/0.4918, allocations: 1.119 MB / 375.7 MB, free: 22.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003632/0.4922, allocations: 35.69 kB / 375.7 MB, free: 22.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.4922, allocations: 1.188 kB / 375.7 MB, free: 22.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.4923, allocations: 26.59 kB / 375.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.4927, allocations: 12.89 kB / 375.7 MB, free: 22.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.4956, allocations: 1.454 MB / 377.2 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.4958, allocations: 0.6817 MB / 377.9 MB, free: 20.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000222/0.496, allocations: 51.56 kB / 377.9 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.354e-05/0.4961, allocations: 26.08 kB / 377.9 MB, free: 20.77 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4961, allocations: 0 / 377.9 MB, free: 20.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06345/0.5596, allocations: 10.5 MB / 388.5 MB, free: 16.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.83, allocations: 14.72 kB / 388.5 MB, free: 16.98 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_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_T.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches