Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.IdealGasH2O,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_IdealGasH2O",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.002053/0.002053, allocations: 106.3 kB / 16.92 MB, free: 6.332 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.002194/0.002194, allocations: 191.4 kB / 17.85 MB, free: 5.414 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/2, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 46.27 kB / 300.7 MB, free: 5.723 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1259, allocations: 49.44 MB / 350.1 MB, free: 4.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.IdealGasH2O): time 0.4809/0.6068, allocations: 149.2 MB / 499.4 MB, free: 15.38 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004146/0.611, allocations: 2.524 MB / 0.4901 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.468e-05/0.6111, allocations: 0 / 0.4901 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.6113, allocations: 25.83 kB / 0.4901 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001443/0.6128, allocations: 328.5 kB / 0.4905 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000286/0.6131, allocations: 55.75 kB / 0.4905 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.6133, allocations: 79.59 kB / 0.4906 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.71e-05/0.6134, allocations: 4 kB / 0.4906 GB, free: 12.38 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.6136, allocations: 39.73 kB / 0.4906 GB, free: 12.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.886e-05/0.6137, allocations: 23.92 kB / 0.4907 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.6137, allocations: 3.984 kB / 0.4907 GB, free: 12.31 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.6148, allocations: 355.5 kB / 0.491 GB, free: 11.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.445e-05/0.6149, allocations: 11.86 kB / 0.491 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.217e-05/0.6149, allocations: 27.92 kB / 0.491 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009339/0.6159, allocations: 297 kB / 0.4913 GB, free: 11.63 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.6159, allocations: 0 / 0.4913 GB, free: 11.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6159, allocations: 4 kB / 0.4913 GB, free: 11.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.6159, allocations: 0 / 0.4913 GB, free: 11.63 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001324/0.6173, allocations: 440 kB / 0.4917 GB, free: 11.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.6173, allocations: 8.031 kB / 0.4917 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.995e-05/0.6174, allocations: 38.75 kB / 0.4918 GB, free: 11.1 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009602/0.627, allocations: 460.7 kB / 0.4922 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.6273, allocations: 175.8 kB / 0.4924 GB, free: 10.44 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.6274, allocations: 7.906 kB / 0.4924 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001329/0.6275, allocations: 8 kB / 0.4924 GB, free: 10.42 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.6287, allocations: 293.9 kB / 0.4927 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.6288, allocations: 0 / 0.4927 GB, free: 10.13 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.245e-05/0.6289, allocations: 8 kB / 0.4927 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.6289, allocations: 4 kB / 0.4927 GB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.6302, allocations: 275.7 kB / 0.493 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001457/0.6316, allocations: 424.8 kB / 0.4934 GB, free: 9.379 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001499/0.6332, allocations: 206.4 kB / 0.4936 GB, free: 9.168 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/0.6335, allocations: 68.81 kB / 0.4936 GB, free: 9.098 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.6335, allocations: 4 kB / 0.4936 GB, free: 9.094 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.6336, allocations: 38.5 kB / 0.4937 GB, free: 9.047 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 2.535e-06/0.6336, allocations: 4 kB / 0.4937 GB, free: 9.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.002614/0.6362, allocations: 412.1 kB / 0.4941 GB, free: 8.637 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.6363, allocations: 67.33 kB / 0.4941 GB, free: 8.559 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.954e-05/0.6364, allocations: 93.86 kB / 0.4942 GB, free: 8.457 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.886e-05/0.6365, allocations: 29.7 kB / 0.4942 GB, free: 8.422 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.926e-05/0.6365, allocations: 99.88 kB / 0.4943 GB, free: 8.32 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.121e-05/0.6366, allocations: 63.09 kB / 0.4944 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.6368, allocations: 41.7 kB / 0.4944 GB, free: 8.211 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.6369, allocations: 326.8 kB / 0.4948 GB, free: 7.883 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004019/0.6373, allocations: 75.94 kB / 0.4948 GB, free: 7.809 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004501/0.6378, allocations: 120.2 kB / 0.4949 GB, free: 7.676 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008459/0.6387, allocations: 196.2 kB / 0.4951 GB, free: 7.469 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.6387, allocations: 0 / 0.4951 GB, free: 7.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001014/0.6397, allocations: 252.2 kB / 0.4954 GB, free: 7.219 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.6397, allocations: 8 kB / 0.4954 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.6398, allocations: 128 / 0.4954 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.6398, allocations: 8.188 kB / 0.4954 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/0.6404, allocations: 51.89 kB / 0.4954 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.6404, allocations: 0 / 0.4954 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.6408, allocations: 15.98 kB / 0.4954 GB, free: 7.137 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.252e-05/0.6409, allocations: 12.61 kB / 0.4955 GB, free: 7.125 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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.0001529/0.641, allocations: 125.7 kB / 0.4956 GB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.831e-05/0.6411, allocations: 16.58 kB / 0.4956 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001248/0.6424, allocations: 269.9 kB / 0.4959 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.6424, allocations: 4 kB / 0.4959 GB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.6424, allocations: 0.625 kB / 0.4959 GB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.6424, allocations: 3.984 kB / 0.4959 GB, free: 6.703 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001889/0.6443, allocations: 0.5832 MB / 0.4964 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.6444, allocations: 0 / 0.4964 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005194/0.6449, allocations: 49.39 kB / 0.4965 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.555e-06/0.6449, allocations: 0 / 0.4965 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.976e-05/0.645, allocations: 16.05 kB / 0.4965 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.645, allocations: 3.938 kB / 0.4965 GB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/0.645, allocations: 4 kB / 0.4965 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.646, allocations: 324.9 kB / 0.4968 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.971e-05/0.6461, allocations: 85.02 kB / 0.4969 GB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/0.6462, allocations: 7.984 kB / 0.4969 GB, free: 5.539 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004034/0.6466, allocations: 15.92 kB / 0.4969 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.6467, allocations: 15.98 kB / 0.4969 GB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.972e-05/0.6467, allocations: 8 kB / 0.4969 GB, free: 5.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.042e-05/0.6468, allocations: 91.25 kB / 0.497 GB, free: 5.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6468, allocations: 4 kB / 0.497 GB, free: 5.406 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005752/0.6474, allocations: 44 kB / 0.4971 GB, free: 5.363 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (18): * Single equations (assignments): 18 * 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.001637/0.649, allocations: 0.8869 MB / 0.4979 GB, free: 4.449 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009885/0.65, allocations: 211.7 kB / 0.4981 GB, free: 4.242 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.6501, allocations: 0 / 0.4981 GB, free: 4.242 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004407/0.6505, allocations: 104.2 kB / 0.4982 GB, free: 4.141 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007521/0.6513, allocations: 42.72 kB / 0.4983 GB, free: 4.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.6528, allocations: 320.4 kB / 0.4986 GB, free: 3.746 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.6532, allocations: 0.6967 MB / 0.4993 GB, free: 3.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000653/0.6538, allocations: 48.75 kB / 0.4993 GB, free: 2.977 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.6541, allocations: 43.41 kB / 0.4994 GB, free: 2.938 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6541, allocations: 4 kB / 0.4994 GB, free: 2.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.6881, allocations: 4.278 MB / 0.5035 GB, free: 14.71 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.13, allocations: 10.88 kB / 0.5035 GB, free: 14.71 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_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_IdealGasH2O.fmu > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches