Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",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.001572/0.001572, 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.001858/0.001858, allocations: 192.6 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8045/0.8045, allocations: 132.2 MB / 422.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 60.38 kB / 0.5019 GB, free: 3.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3901/0.3914, allocations: 80.2 MB / 0.5802 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.004841/0.3963, allocations: 3.734 MB / 0.5838 GB, free: 1.891 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001748/0.3965, allocations: 154 kB / 0.584 GB, free: 1.785 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.972e-05/0.3965, allocations: 4.625 kB / 0.584 GB, free: 1.781 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.737e-05/0.3966, allocations: 5.391 kB / 0.584 GB, free: 1.777 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.707e-05/0.3967, allocations: 12.98 kB / 0.584 GB, free: 1.77 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003225/0.397, allocations: 79.95 kB / 0.5841 GB, free: 1.73 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 9.041e-05/0.3971, allocations: 40.75 kB / 0.5841 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.555e-05/0.3972, allocations: 3.375 kB / 0.5841 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.797e-05/0.3972, allocations: 11.38 kB / 0.5841 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.259e-05/0.3973, allocations: 15.95 kB / 0.5841 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.3973, allocations: 1.344 kB / 0.5841 GB, free: 1.703 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005091/0.3978, allocations: 185.8 kB / 0.5843 GB, free: 1.633 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.358e-05/0.3979, allocations: 16.95 kB / 0.5843 GB, free: 1.621 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.694e-05/0.3979, allocations: 8.891 kB / 0.5843 GB, free: 1.617 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.398, allocations: 40.05 kB / 0.5844 GB, free: 1.609 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.398, allocations: 1.734 kB / 0.5844 GB, free: 1.609 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.398, allocations: 0 / 0.5844 GB, free: 1.609 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3981, allocations: 0 / 0.5844 GB, free: 1.609 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.0002978/0.3984, allocations: 338.6 kB / 0.5847 GB, free: 1.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.3984, allocations: 9.031 kB / 0.5847 GB, free: 1.25 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.55e-05/0.3984, allocations: 36.31 kB / 0.5847 GB, free: 1.207 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.3985, allocations: 3.062 kB / 0.5847 GB, free: 1.207 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.522e-05/0.3985, allocations: 162.7 kB / 0.5849 GB, free: 1.012 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.672e-05/0.3986, allocations: 32.3 kB / 0.5849 GB, free: 0.9766 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.3986, allocations: 5.969 kB / 0.5849 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.3987, allocations: 40.3 kB / 0.585 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3988, allocations: 4.719 kB / 0.585 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.222e-05/0.3988, allocations: 5.781 kB / 0.585 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.3988, allocations: 5.484 kB / 0.585 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.447e-05/0.3989, allocations: 12.2 kB / 0.585 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.3992, allocations: 336.8 kB / 0.5853 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.732e-05/0.3993, allocations: 16.42 kB / 0.5853 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.495e-05/0.3993, allocations: 10.5 kB / 0.5854 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.555e-05/0.3993, allocations: 84.28 kB / 0.5854 GB, free: 440 kB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.3994, allocations: 40.17 kB / 0.5855 GB, free: 392 kB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.3994, allocations: 0 / 0.5855 GB, free: 392 kB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001214/0.3995, allocations: 33.42 kB / 0.5855 GB, free: 360 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.917e-05/0.3995, allocations: 52.09 kB / 0.5856 GB, free: 296 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.819e-05/0.3996, allocations: 102.8 kB / 0.5856 GB, free: 192 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.3996, allocations: 31.02 kB / 0.5857 GB, free: 156 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.764e-05/0.3996, allocations: 86.05 kB / 0.5858 GB, free: 68 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.28e-06/0.3997, allocations: 5.344 kB / 0.5858 GB, free: 64 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.03e-05/0.3997, allocations: 18.45 kB / 0.5858 GB, free: 44 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.3998, allocations: 316.4 kB / 0.5861 GB, free: 15.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.618e-05/0.3998, allocations: 8.031 kB / 0.5861 GB, free: 15.72 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.233e-05/0.3999, allocations: 19.12 kB / 0.5861 GB, free: 15.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.521e-05/0.3999, allocations: 29.27 kB / 0.5861 GB, free: 15.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3999, allocations: 0 / 0.5861 GB, free: 15.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.867e-05/0.4, allocations: 53.67 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.4, allocations: 5.125 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.4, allocations: 0.9062 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.4, allocations: 1.797 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.4001, allocations: 5.438 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.4001, allocations: 1.828 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.749e-05/0.4001, allocations: 5.094 kB / 0.5862 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.4001, allocations: 1.156 kB / 0.5862 GB, free: 15.63 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.273e-05/0.4002, allocations: 119.3 kB / 0.5863 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.4002, allocations: 0.9688 kB / 0.5863 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.4003, allocations: 118.5 kB / 0.5864 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-05/0.4004, allocations: 182.2 kB / 0.5866 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.576e-05/0.4005, allocations: 186 kB / 0.5868 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-05/0.4005, allocations: 186 kB / 0.587 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001991/0.4007, allocations: 404.2 kB / 0.5874 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-05/0.4008, allocations: 114.1 kB / 0.5875 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.844e-05/0.4008, allocations: 102.5 kB / 0.5876 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.268e-05/0.4009, allocations: 186.3 kB / 0.5877 GB, free: 13.97 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.677e-05/0.4009, allocations: 181.6 kB / 0.5879 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.082e-05/0.401, allocations: 178 kB / 0.5881 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.433e-05/0.401, allocations: 183.3 kB / 0.5883 GB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001406/0.4012, allocations: 309.7 kB / 0.5885 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.263e-05/0.4013, allocations: 184 kB / 0.5887 GB, free: 12.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.4013, allocations: 179.2 kB / 0.5889 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.4015, allocations: 113.3 kB / 0.589 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.933e-05/0.4016, allocations: 178.2 kB / 0.5892 GB, free: 12.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-05/0.4016, allocations: 106.9 kB / 0.5893 GB, free: 12.32 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.571e-05/0.4017, allocations: 90.58 kB / 0.5894 GB, free: 12.24 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4017, allocations: 0 / 0.5894 GB, free: 12.24 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000244/0.4019, allocations: 23.69 kB / 0.5894 GB, free: 12.23 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.0004994/0.4024, allocations: 0.8356 MB / 0.5902 GB, free: 11.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.326e-05/0.4025, allocations: 14.78 kB / 0.5902 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4025, allocations: 0.5312 kB / 0.5902 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.365e-06/0.4025, allocations: 1.578 kB / 0.5902 GB, free: 11.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.4029, allocations: 456.2 kB / 0.5907 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.4039, allocations: 1.319 MB / 0.5919 GB, free: 9.617 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.4041, allocations: 0.6746 MB / 0.5926 GB, free: 8.922 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.247e-05/0.4042, allocations: 5.203 kB / 0.5926 GB, free: 8.922 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.637e-05/0.4042, allocations: 10.52 kB / 0.5926 GB, free: 8.914 MB / 446.1 MB Notification: Performance of SimCode: time 2.61e-07/0.4042, allocations: 4 kB / 0.5926 GB, free: 8.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01835/0.4226, allocations: 1.485 MB / 0.5941 GB, free: 8.566 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.193/7.616, allocations: 3.656 kB / 0.5941 GB, free: 8.566 MB / 446.1 MB (rm -f IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_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_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1)