Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_IDEAS_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.007427/0.007432, allocations: 98.64 kB / 15.73 MB, free: 6.008 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.001658/0.001658, allocations: 193.4 kB / 16.67 MB, free: 5.93 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7585/0.7585, allocations: 132.2 MB / 422.7 MB, free: 6.535 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 70.91 kB / 0.5809 GB, free: 24.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1294, allocations: 80.22 MB / 0.6592 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004449/0.1338, allocations: 3.281 MB / 0.6624 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 9.919e-05/0.134, allocations: 55.84 kB / 0.6625 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.533e-05/0.134, allocations: 0 / 0.6625 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.505e-05/0.1341, allocations: 3.938 kB / 0.6625 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.435e-05/0.1342, allocations: 11.98 kB / 0.6625 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005201/0.1347, allocations: 199.1 kB / 0.6627 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.273e-05/0.1348, allocations: 31.86 kB / 0.6627 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.22e-05/0.1348, allocations: 3.984 kB / 0.6627 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.904e-05/0.1349, allocations: 19.98 kB / 0.6627 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.072e-05/0.135, allocations: 11.98 kB / 0.6627 GB, free: 7.105 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.135, allocations: 4 kB / 0.6627 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003432/0.1353, allocations: 179.5 kB / 0.6629 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.733e-05/0.1354, allocations: 0 / 0.6629 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.294e-05/0.1354, allocations: 8 kB / 0.6629 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.1357, allocations: 139.9 kB / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.1357, allocations: 0 / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1357, allocations: 0 / 0.663 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.1357, allocations: 0 / 0.663 GB, free: 6.781 MB / 0.4981 GB 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.0003846/0.1361, allocations: 355.3 kB / 0.6634 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1362, allocations: 12.03 kB / 0.6634 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.156e-05/0.1362, allocations: 30.75 kB / 0.6634 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.929e-05/0.1362, allocations: 0.9375 kB / 0.6634 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.1363, allocations: 168.3 kB / 0.6636 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.269e-05/0.1364, allocations: 34.27 kB / 0.6636 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-06/0.1364, allocations: 8.062 kB / 0.6636 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.1365, allocations: 41.69 kB / 0.6637 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.1366, allocations: 4 kB / 0.6637 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.1366, allocations: 0 / 0.6637 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.456e-05/0.1366, allocations: 0 / 0.6637 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.376e-05/0.1366, allocations: 15.98 kB / 0.6637 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005858/0.1372, allocations: 0.5833 MB / 0.6643 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.338e-05/0.1373, allocations: 22.52 kB / 0.6643 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.291e-05/0.1373, allocations: 8.922 kB / 0.6643 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002139/0.1375, allocations: 344.4 kB / 0.6646 GB, free: 4.859 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/0.1376, allocations: 30.56 kB / 0.6646 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1376, allocations: 0 / 0.6646 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.1377, allocations: 41.66 kB / 0.6647 GB, free: 4.773 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.06e-05/0.1378, allocations: 51.41 kB / 0.6647 GB, free: 4.711 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.261e-05/0.1378, allocations: 109.8 kB / 0.6648 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.1379, allocations: 25.7 kB / 0.6649 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.854e-05/0.1379, allocations: 88.22 kB / 0.6649 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.348e-06/0.1379, allocations: 0 / 0.6649 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.138, allocations: 17.7 kB / 0.665 GB, free: 4.449 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.822e-05/0.1381, allocations: 322.8 kB / 0.6653 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.516e-05/0.1381, allocations: 4 kB / 0.6653 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.298e-05/0.1381, allocations: 17.7 kB / 0.6653 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.226e-05/0.1382, allocations: 25.72 kB / 0.6653 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1382, allocations: 3.938 kB / 0.6653 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.68e-05/0.1382, allocations: 49.62 kB / 0.6654 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.1383, allocations: 4 kB / 0.6654 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.1383, allocations: 0 / 0.6654 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.167e-05/0.1383, allocations: 4 kB / 0.6654 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.151e-05/0.1383, allocations: 4 kB / 0.6654 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1383, allocations: 0 / 0.6654 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.1384, allocations: 7.891 kB / 0.6654 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.1384, allocations: 8.062 kB / 0.6654 GB, free: 3.98 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.358e-05/0.1385, allocations: 110.7 kB / 0.6655 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.1385, allocations: 11.92 kB / 0.6655 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.1386, allocations: 115.4 kB / 0.6656 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.89e-05/0.1387, allocations: 180.3 kB / 0.6658 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.426e-05/0.1387, allocations: 188.2 kB / 0.666 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.903e-05/0.1388, allocations: 180.5 kB / 0.6661 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.139, allocations: 413.2 kB / 0.6665 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.794e-05/0.1391, allocations: 105 kB / 0.6666 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.566e-05/0.1391, allocations: 101 kB / 0.6667 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.271e-05/0.1392, allocations: 196.2 kB / 0.6669 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.648e-05/0.1392, allocations: 180.3 kB / 0.6671 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.955e-05/0.1393, allocations: 184.2 kB / 0.6673 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.443e-05/0.1393, allocations: 176.3 kB / 0.6674 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.1395, allocations: 307.7 kB / 0.6677 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.1395, allocations: 190.1 kB / 0.6679 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.108e-05/0.1396, allocations: 180.2 kB / 0.6681 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.1398, allocations: 109 kB / 0.6682 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.422e-05/0.1398, allocations: 184.2 kB / 0.6684 GB, free: 0.7227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.1399, allocations: 105 kB / 0.6685 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.217e-05/0.1399, allocations: 83.28 kB / 0.6685 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1399, allocations: 4 kB / 0.6685 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002782/0.1402, allocations: 43.8 kB / 0.6686 GB, free: 496 kB / 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.0004926/0.1407, allocations: 0.8593 MB / 0.6694 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 6.316e-05/0.1408, allocations: 11.98 kB / 0.6694 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1408, allocations: 0 / 0.6694 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.1408, allocations: 0 / 0.6694 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003968/0.1412, allocations: 467.8 kB / 0.6699 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/0.1422, allocations: 1.328 MB / 0.6712 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.1424, allocations: 0.6844 MB / 0.6719 GB, free: 13 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.151e-05/0.1425, allocations: 8 kB / 0.6719 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.1425, allocations: 7.438 kB / 0.6719 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.1425, allocations: 4 kB / 0.6719 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.1596, allocations: 2.156 MB / 0.674 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.354/7.514, allocations: 7.172 kB / 0.674 GB, free: 11.01 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_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_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > IDEAS_IDEAS.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)