Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) 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(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",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.001628/0.001628, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002094/0.002094, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7725/0.7725, allocations: 132.2 MB / 422.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 63.97 kB / 0.5019 GB, free: 3.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3789/0.3802, allocations: 80.2 MB / 0.5802 GB, free: 4.547 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005695/0.3859, allocations: 4.006 MB / 0.5841 GB, free: 1.652 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002154/0.3862, allocations: 168.5 kB / 0.5843 GB, free: 1.531 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.54e-05/0.3862, allocations: 5.156 kB / 0.5843 GB, free: 1.527 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001046/0.3863, allocations: 1.172 kB / 0.5843 GB, free: 1.527 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.646e-05/0.3864, allocations: 9.875 kB / 0.5843 GB, free: 1.523 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.3868, allocations: 78.14 kB / 0.5843 GB, free: 1.484 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.936e-05/0.3869, allocations: 34.08 kB / 0.5844 GB, free: 1.473 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.704e-05/0.387, allocations: 2.688 kB / 0.5844 GB, free: 1.473 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.77e-05/0.3871, allocations: 19.47 kB / 0.5844 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.105e-05/0.3871, allocations: 19.53 kB / 0.5844 GB, free: 1.453 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.3871, allocations: 1.344 kB / 0.5844 GB, free: 1.453 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.3874, allocations: 56.78 kB / 0.5845 GB, free: 1.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.06e-05/0.3874, allocations: 9.109 kB / 0.5845 GB, free: 1.426 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.518e-05/0.3875, allocations: 10.78 kB / 0.5845 GB, free: 1.422 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001461/0.3876, allocations: 42.81 kB / 0.5845 GB, free: 1.41 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3877, allocations: 1.344 kB / 0.5845 GB, free: 1.41 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3877, allocations: 0 / 0.5845 GB, free: 1.41 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3877, allocations: 0.6562 kB / 0.5845 GB, free: 1.41 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003797/0.3881, allocations: 342.1 kB / 0.5849 GB, free: 1.047 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3881, allocations: 9.375 kB / 0.5849 GB, free: 1.047 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.3882, allocations: 40.48 kB / 0.5849 GB, free: 1 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.99e-05/0.3882, allocations: 3.062 kB / 0.5849 GB, free: 1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.228e-05/0.3883, allocations: 162.6 kB / 0.5851 GB, free: 0.8047 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.91e-05/0.3884, allocations: 28.59 kB / 0.5851 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.3884, allocations: 4.969 kB / 0.5851 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001461/0.3885, allocations: 53.33 kB / 0.5851 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.3886, allocations: 0 / 0.5851 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.3886, allocations: 4.719 kB / 0.5851 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.3886, allocations: 2.125 kB / 0.5852 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.275e-05/0.3887, allocations: 13.19 kB / 0.5852 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003568/0.389, allocations: 335.7 kB / 0.5855 GB, free: 360 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.196e-05/0.3891, allocations: 16.53 kB / 0.5855 GB, free: 336 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.557e-05/0.3891, allocations: 15 kB / 0.5855 GB, free: 320 kB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.963e-05/0.3892, allocations: 87.8 kB / 0.5856 GB, free: 220 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.3892, allocations: 36.42 kB / 0.5856 GB, free: 176 kB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.3892, allocations: 0.6875 kB / 0.5856 GB, free: 176 kB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001381/0.3894, allocations: 33.38 kB / 0.5857 GB, free: 144 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/0.3894, allocations: 52.11 kB / 0.5857 GB, free: 80 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.767e-05/0.3895, allocations: 101.9 kB / 0.5858 GB, free: 15.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.3895, allocations: 31.3 kB / 0.5858 GB, free: 15.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.638e-05/0.3896, allocations: 86.03 kB / 0.5859 GB, free: 15.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-06/0.3896, allocations: 0.625 kB / 0.5859 GB, free: 15.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.535e-05/0.3896, allocations: 19.83 kB / 0.5859 GB, free: 15.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3897, allocations: 320.3 kB / 0.5862 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.875e-05/0.3898, allocations: 7.562 kB / 0.5863 GB, free: 15.51 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.54e-05/0.3898, allocations: 18.95 kB / 0.5863 GB, free: 15.49 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.769e-05/0.3898, allocations: 21.52 kB / 0.5863 GB, free: 15.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3899, allocations: 0 / 0.5863 GB, free: 15.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.707e-05/0.3899, allocations: 49.88 kB / 0.5863 GB, free: 15.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.39, allocations: 5 kB / 0.5863 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.39, allocations: 1.891 kB / 0.5863 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.39, allocations: 0.9688 kB / 0.5864 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.627e-05/0.39, allocations: 5.047 kB / 0.5864 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.3901, allocations: 1.938 kB / 0.5864 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.251e-05/0.3901, allocations: 12.94 kB / 0.5864 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.3901, allocations: 2.219 kB / 0.5864 GB, free: 15.42 MB / 446.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 (3): * Single equations (assignments): 3 * 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.271e-05/0.3902, allocations: 117.5 kB / 0.5865 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.946e-05/0.3902, allocations: 1.344 kB / 0.5865 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.3903, allocations: 117.4 kB / 0.5866 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.346e-05/0.3904, allocations: 181.8 kB / 0.5868 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.835e-05/0.3905, allocations: 190.5 kB / 0.587 GB, free: 14.81 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.873e-05/0.3905, allocations: 181.8 kB / 0.5871 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.3908, allocations: 403.7 kB / 0.5875 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.601e-05/0.3908, allocations: 110.5 kB / 0.5876 GB, free: 14.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.289e-05/0.3909, allocations: 102.6 kB / 0.5877 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.971e-05/0.3909, allocations: 186.3 kB / 0.5879 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.378e-05/0.391, allocations: 182 kB / 0.5881 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.729e-05/0.3911, allocations: 179.2 kB / 0.5882 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.937e-05/0.3912, allocations: 181 kB / 0.5884 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.3913, allocations: 319.1 kB / 0.5887 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.378e-05/0.3914, allocations: 179.9 kB / 0.5889 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.55e-05/0.3915, allocations: 181.8 kB / 0.5891 GB, free: 12.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.3917, allocations: 110.6 kB / 0.5892 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.3918, allocations: 178.3 kB / 0.5893 GB, free: 12.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.874e-05/0.3918, allocations: 106.7 kB / 0.5894 GB, free: 12.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.047e-05/0.3919, allocations: 90.19 kB / 0.5895 GB, free: 12.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3919, allocations: 0 / 0.5895 GB, free: 12.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.3922, allocations: 23.81 kB / 0.5895 GB, free: 12.02 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0005256/0.3927, allocations: 0.8306 MB / 0.5904 GB, free: 11.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 6.997e-05/0.3928, allocations: 14.78 kB / 0.5904 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3928, allocations: 0.8438 kB / 0.5904 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.024e-06/0.3928, allocations: 0 / 0.5904 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003844/0.3932, allocations: 458.9 kB / 0.5908 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.3943, allocations: 1.32 MB / 0.5921 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.3945, allocations: 0.676 MB / 0.5928 GB, free: 8.723 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.285e-05/0.3946, allocations: 7.562 kB / 0.5928 GB, free: 8.719 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.657e-05/0.3946, allocations: 10.06 kB / 0.5928 GB, free: 8.711 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3946, allocations: 4 kB / 0.5928 GB, free: 8.707 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01772/0.4124, allocations: 1.462 MB / 0.5942 GB, free: 8.352 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.705/8.118, allocations: 5.156 kB / 0.5942 GB, free: 8.352 MB / 446.1 MB (rm -f IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)