Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_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.001122/0.001122, allocations: 108 kB / 15.61 MB, free: 152 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.001113/0.001113, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9414/0.9414, allocations: 135.1 MB / 425.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 56.22 kB / 0.5054 GB, free: 5.258 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.142, allocations: 80.93 MB / 0.5845 GB, free: 4.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005256/0.1473, allocations: 3.996 MB / 0.5884 GB, free: 464 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001932/0.1475, allocations: 167.4 kB / 0.5885 GB, free: 296 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.29e-05/0.1475, allocations: 0 / 0.5885 GB, free: 296 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.188e-05/0.1476, allocations: 0 / 0.5885 GB, free: 296 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.1477, allocations: 19.91 kB / 0.5885 GB, free: 276 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003184/0.1481, allocations: 86.81 kB / 0.5886 GB, free: 192 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.585e-05/0.1481, allocations: 31.91 kB / 0.5887 GB, free: 160 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.841e-05/0.1482, allocations: 0 / 0.5887 GB, free: 160 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.982e-05/0.1482, allocations: 19.88 kB / 0.5887 GB, free: 140 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.978e-05/0.1483, allocations: 11.97 kB / 0.5887 GB, free: 128 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.1483, allocations: 4 kB / 0.5887 GB, free: 124 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.1485, allocations: 59.81 kB / 0.5888 GB, free: 64 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.843e-05/0.1486, allocations: 4 kB / 0.5888 GB, free: 60 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.1486, allocations: 23.91 kB / 0.5888 GB, free: 36 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.1487, allocations: 32.25 kB / 0.5888 GB, free: 4 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1487, allocations: 0 / 0.5888 GB, free: 4 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1487, allocations: 4 kB / 0.5888 GB, free: 0 / 494.1 MB Notification: Performance of Transformations before backend: time 4.509e-06/0.1487, allocations: 0 / 0.5888 GB, free: 0 / 494.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.0003784/0.1491, allocations: 335.4 kB / 0.5891 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.475e-05/0.1492, allocations: 8.031 kB / 0.5891 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.782e-05/0.1492, allocations: 42.67 kB / 0.5892 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.942e-05/0.1492, allocations: 0.9375 kB / 0.5892 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.013e-05/0.1493, allocations: 168.4 kB / 0.5893 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.818e-05/0.1494, allocations: 34.2 kB / 0.5894 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.1494, allocations: 4.125 kB / 0.5894 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.1496, allocations: 41.69 kB / 0.5894 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1496, allocations: 0 / 0.5894 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.1496, allocations: 4 kB / 0.5894 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.1496, allocations: 0 / 0.5894 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.085e-05/0.1497, allocations: 11.98 kB / 0.5894 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.1501, allocations: 342 kB / 0.5898 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.264e-05/0.1501, allocations: 22.52 kB / 0.5898 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.529e-05/0.1501, allocations: 8.922 kB / 0.5898 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.103e-05/0.1502, allocations: 85.09 kB / 0.5899 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.1502, allocations: 30.56 kB / 0.5899 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1502, allocations: 0 / 0.5899 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.000131/0.1504, allocations: 41.61 kB / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.1504, allocations: 55.34 kB / 0.59 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.996e-05/0.1505, allocations: 105.8 kB / 0.5901 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.1505, allocations: 25.7 kB / 0.5901 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.492e-05/0.1506, allocations: 91.98 kB / 0.5902 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.987e-06/0.1506, allocations: 0 / 0.5902 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.155e-05/0.1506, allocations: 21.64 kB / 0.5902 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.919e-05/0.1507, allocations: 322.9 kB / 0.5905 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.435e-05/0.1507, allocations: 4 kB / 0.5905 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.355e-05/0.1508, allocations: 17.7 kB / 0.5906 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.085e-05/0.1508, allocations: 21.72 kB / 0.5906 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1508, allocations: 0 / 0.5906 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.858e-05/0.1509, allocations: 49.62 kB / 0.5906 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.1509, allocations: 8.062 kB / 0.5906 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.1509, allocations: 0 / 0.5906 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.1509, allocations: 4 kB / 0.5906 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.95e-05/0.151, allocations: 4 kB / 0.5906 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.608e-06/0.151, allocations: 0 / 0.5906 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.012e-05/0.151, allocations: 3.906 kB / 0.5906 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.151, allocations: 4.281 kB / 0.5906 GB, free: 13.84 MB / 0.4981 GB 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 6.328e-05/0.1511, allocations: 121.6 kB / 0.5908 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.1511, allocations: 4 kB / 0.5908 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.896e-05/0.1512, allocations: 121 kB / 0.5909 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-05/0.1513, allocations: 184.3 kB / 0.5911 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-05/0.1513, allocations: 184.2 kB / 0.5912 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.091e-05/0.1514, allocations: 176.3 kB / 0.5914 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002028/0.1516, allocations: 417.1 kB / 0.5918 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.503e-05/0.1517, allocations: 101 kB / 0.5919 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.925e-05/0.1517, allocations: 104.9 kB / 0.592 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.077e-05/0.1517, allocations: 180.3 kB / 0.5922 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.389e-05/0.1518, allocations: 176.3 kB / 0.5923 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.142e-05/0.1519, allocations: 192.2 kB / 0.5925 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-05/0.1519, allocations: 180.3 kB / 0.5927 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001176/0.152, allocations: 307.7 kB / 0.593 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.231e-05/0.1521, allocations: 186.1 kB / 0.5932 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.819e-05/0.1522, allocations: 180.2 kB / 0.5933 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/0.1523, allocations: 105 kB / 0.5934 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/0.1524, allocations: 188.2 kB / 0.5936 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.1524, allocations: 109 kB / 0.5937 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.291e-05/0.1525, allocations: 87.28 kB / 0.5938 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1525, allocations: 0 / 0.5938 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002429/0.1527, allocations: 19.94 kB / 0.5938 GB, free: 10.36 MB / 0.4981 GB 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.0004579/0.1532, allocations: 0.8384 MB / 0.5946 GB, free: 9.496 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.709e-05/0.1533, allocations: 4 kB / 0.5946 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1533, allocations: 4 kB / 0.5946 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.483e-06/0.1533, allocations: 0 / 0.5946 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.1537, allocations: 463.8 kB / 0.5951 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008953/0.1546, allocations: 1.313 MB / 0.5964 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.1548, allocations: 0.6729 MB / 0.597 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.877e-05/0.1548, allocations: 8 kB / 0.597 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.347e-05/0.1548, allocations: 11.42 kB / 0.597 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1549, allocations: 7.938 kB / 0.5971 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01516/0.17, allocations: 1.465 MB / 0.5985 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.236/7.406, allocations: 19.3 kB / 0.5985 GB, free: 5.523 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)