Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_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.001422/0.001422, allocations: 112.9 kB / 16.4 MB, free: 6.379 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.0016/0.001601, allocations: 196 kB / 17.33 MB, free: 5.844 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.794/0.794, allocations: 126 MB / 417.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001534, allocations: 63.86 kB / 0.5726 GB, free: 27.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.139, allocations: 78.69 MB / 0.6494 GB, free: 4.594 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004933/0.144, allocations: 3.284 MB / 0.6527 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001044/0.1441, allocations: 51.84 kB / 0.6527 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.971e-05/0.1441, allocations: 0 / 0.6527 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.1443, allocations: 7.938 kB / 0.6527 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.271e-05/0.1443, allocations: 19.86 kB / 0.6527 GB, free: 1.207 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005635/0.1449, allocations: 183.3 kB / 0.6529 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.008e-05/0.145, allocations: 35.86 kB / 0.6529 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.596e-05/0.1451, allocations: 3.984 kB / 0.6529 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.936e-05/0.1451, allocations: 15.98 kB / 0.653 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.7e-05/0.1452, allocations: 11.98 kB / 0.653 GB, free: 0.9609 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.1452, allocations: 3.938 kB / 0.653 GB, free: 0.957 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003524/0.1455, allocations: 171.6 kB / 0.6531 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.161e-05/0.1456, allocations: 15.92 kB / 0.6532 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.1456, allocations: 4 kB / 0.6532 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.1459, allocations: 131.9 kB / 0.6533 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1459, allocations: 3.938 kB / 0.6533 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1459, allocations: 4 kB / 0.6533 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.1459, allocations: 0 / 0.6533 GB, free: 0.6328 MB / 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.0003763/0.1463, allocations: 359.3 kB / 0.6536 GB, free: 240 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1464, allocations: 8.031 kB / 0.6536 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.1464, allocations: 30.75 kB / 0.6537 GB, free: 192 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.1465, allocations: 4.938 kB / 0.6537 GB, free: 188 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1466, allocations: 168.3 kB / 0.6538 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.196e-05/0.1466, allocations: 26.27 kB / 0.6539 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.1467, allocations: 8.125 kB / 0.6539 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.1468, allocations: 45.67 kB / 0.6539 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.1468, allocations: 4 kB / 0.6539 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.1468, allocations: 0 / 0.6539 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.1468, allocations: 0 / 0.6539 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.036e-05/0.1469, allocations: 15.98 kB / 0.6539 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006051/0.1475, allocations: 0.5871 MB / 0.6545 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.946e-05/0.1476, allocations: 22.52 kB / 0.6545 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.543e-05/0.1476, allocations: 4.859 kB / 0.6545 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002231/0.1478, allocations: 344.5 kB / 0.6549 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.1478, allocations: 34.56 kB / 0.6549 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.1478, allocations: 0 / 0.6549 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001392/0.148, allocations: 37.62 kB / 0.6549 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.148, allocations: 51.41 kB / 0.655 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.255e-05/0.1481, allocations: 101.9 kB / 0.6551 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.1481, allocations: 25.7 kB / 0.6551 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.31e-05/0.1482, allocations: 92.2 kB / 0.6552 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.952e-06/0.1482, allocations: 4 kB / 0.6552 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/0.1482, allocations: 13.72 kB / 0.6552 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.1483, allocations: 322.8 kB / 0.6555 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.752e-05/0.1484, allocations: 7.984 kB / 0.6555 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.54e-05/0.1484, allocations: 21.89 kB / 0.6555 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.458e-05/0.1484, allocations: 25.72 kB / 0.6556 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1484, allocations: 0 / 0.6556 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.532e-05/0.1485, allocations: 49.58 kB / 0.6556 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.1485, allocations: 4 kB / 0.6556 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.1485, allocations: 4 kB / 0.6556 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1486, allocations: 0 / 0.6556 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.355e-05/0.1486, allocations: 4 kB / 0.6556 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.331e-06/0.1486, allocations: 3.984 kB / 0.6556 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.79e-05/0.1486, allocations: 12 kB / 0.6556 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.1487, allocations: 7.938 kB / 0.6556 GB, free: 13.82 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.127e-05/0.1487, allocations: 109.8 kB / 0.6557 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.729e-05/0.1488, allocations: 7.938 kB / 0.6558 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.1489, allocations: 120.3 kB / 0.6559 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.315e-05/0.1489, allocations: 184.2 kB / 0.656 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.278e-05/0.149, allocations: 184.2 kB / 0.6562 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.285e-05/0.149, allocations: 176.3 kB / 0.6564 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002115/0.1493, allocations: 413.2 kB / 0.6568 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.892e-05/0.1493, allocations: 105 kB / 0.6569 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.1493, allocations: 108.9 kB / 0.657 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-05/0.1494, allocations: 180.2 kB / 0.6572 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.503e-05/0.1495, allocations: 180.3 kB / 0.6573 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-05/0.1495, allocations: 180.2 kB / 0.6575 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.303e-05/0.1496, allocations: 180.3 kB / 0.6577 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.1497, allocations: 311.7 kB / 0.658 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.74e-05/0.1498, allocations: 186 kB / 0.6582 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.756e-05/0.1498, allocations: 184.2 kB / 0.6583 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.15, allocations: 113 kB / 0.6584 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.649e-05/0.1501, allocations: 180.2 kB / 0.6586 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.1501, allocations: 105 kB / 0.6587 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.1501, allocations: 87.28 kB / 0.6588 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1502, allocations: 4 kB / 0.6588 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002803/0.1504, allocations: 39.8 kB / 0.6588 GB, free: 10.34 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.0004817/0.1509, allocations: 0.8632 MB / 0.6597 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.566e-05/0.151, allocations: 12 kB / 0.6597 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.151, allocations: 0 / 0.6597 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.433e-06/0.151, allocations: 0 / 0.6597 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.1515, allocations: 468.3 kB / 0.6601 GB, free: 8.977 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009516/0.1524, allocations: 1.34 MB / 0.6614 GB, free: 7.551 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.1526, allocations: 0.669 MB / 0.6621 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.474e-05/0.1527, allocations: 11.98 kB / 0.6621 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.718e-05/0.1527, allocations: 11.44 kB / 0.6621 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1527, allocations: 0 / 0.6621 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01812/0.1709, allocations: 2.16 MB / 0.6642 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.368/7.539, allocations: 6.094 kB / 0.6642 GB, free: 4.859 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)