Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IBPSA_latest_IBPSA_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.001937/0.001937, allocations: 111.3 kB / 16.41 MB, free: 6.496 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.002253/0.002253, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.488/1.488, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8345/0.8345, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 65.19 kB / 0.5735 GB, free: 27.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1349, allocations: 78.87 MB / 0.6505 GB, free: 3.586 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005621/0.1405, allocations: 4.006 MB / 0.6544 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002141/0.1408, allocations: 159.5 kB / 0.6546 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.386e-05/0.1408, allocations: 0 / 0.6546 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.152e-05/0.1409, allocations: 3.938 kB / 0.6546 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.713e-05/0.141, allocations: 15.97 kB / 0.6546 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.1414, allocations: 85.06 kB / 0.6547 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.562e-05/0.1414, allocations: 35.78 kB / 0.6547 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.648e-05/0.1415, allocations: 0 / 0.6547 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.262e-05/0.1415, allocations: 19.98 kB / 0.6548 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.666e-05/0.1416, allocations: 11.92 kB / 0.6548 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.463e-05/0.1416, allocations: 4 kB / 0.6548 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001947/0.1418, allocations: 59.81 kB / 0.6548 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.94e-05/0.1419, allocations: 11.92 kB / 0.6548 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.109e-05/0.1419, allocations: 7.984 kB / 0.6548 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.1421, allocations: 40.12 kB / 0.6549 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1421, allocations: 4 kB / 0.6549 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of FrontEnd: time 9.21e-07/0.1421, allocations: 0 / 0.6549 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.1421, allocations: 0 / 0.6549 GB, free: 15.11 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.0003868/0.1425, allocations: 335.4 kB / 0.6552 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1425, allocations: 8.031 kB / 0.6552 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.331e-05/0.1426, allocations: 46.66 kB / 0.6553 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.979e-05/0.1426, allocations: 4.938 kB / 0.6553 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.1428, allocations: 160.4 kB / 0.6554 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.227e-05/0.1428, allocations: 30.27 kB / 0.6554 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.1429, allocations: 8.125 kB / 0.6555 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001158/0.143, allocations: 37.69 kB / 0.6555 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.143, allocations: 0 / 0.6555 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.143, allocations: 0 / 0.6555 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.143, allocations: 4 kB / 0.6555 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.359e-05/0.1431, allocations: 19.98 kB / 0.6555 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004418/0.1435, allocations: 338 kB / 0.6558 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.666e-05/0.1436, allocations: 14.58 kB / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.454e-05/0.1436, allocations: 4.859 kB / 0.6559 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.272e-05/0.1437, allocations: 89.16 kB / 0.6559 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.1437, allocations: 34.56 kB / 0.656 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1437, allocations: 0 / 0.656 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.1439, allocations: 45.59 kB / 0.656 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/0.1439, allocations: 51.41 kB / 0.6561 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.887e-05/0.144, allocations: 101.8 kB / 0.6562 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.1441, allocations: 25.7 kB / 0.6562 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.624e-05/0.1441, allocations: 92.03 kB / 0.6563 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.469e-06/0.1441, allocations: 0 / 0.6563 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.1442, allocations: 25.83 kB / 0.6563 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1443, allocations: 314.8 kB / 0.6566 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.769e-05/0.1443, allocations: 4 kB / 0.6566 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.939e-05/0.1444, allocations: 21.83 kB / 0.6566 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.777e-05/0.1444, allocations: 21.66 kB / 0.6566 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1444, allocations: 0 / 0.6566 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.184e-05/0.1445, allocations: 53.69 kB / 0.6567 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.1445, allocations: 4 kB / 0.6567 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.1446, allocations: 0 / 0.6567 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.1446, allocations: 4.031 kB / 0.6567 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.919e-05/0.1446, allocations: 15.92 kB / 0.6567 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1446, allocations: 0 / 0.6567 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.985e-05/0.1447, allocations: 3.953 kB / 0.6567 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.1447, allocations: 4 kB / 0.6567 GB, free: 12.94 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 8.442e-05/0.1448, allocations: 121.8 kB / 0.6568 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.478e-05/0.1448, allocations: 0 / 0.6568 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.1449, allocations: 113 kB / 0.6569 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.707e-05/0.145, allocations: 180.2 kB / 0.6571 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.542e-05/0.1451, allocations: 184.2 kB / 0.6573 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.184e-05/0.1452, allocations: 188.2 kB / 0.6575 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002656/0.1454, allocations: 409.2 kB / 0.6579 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.767e-05/0.1455, allocations: 105 kB / 0.658 GB, free: 11.56 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.4e-05/0.1455, allocations: 104.9 kB / 0.6581 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.665e-05/0.1456, allocations: 180.3 kB / 0.6582 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.091e-05/0.1457, allocations: 184.2 kB / 0.6584 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-05/0.1458, allocations: 184.2 kB / 0.6586 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-05/0.1459, allocations: 176.3 kB / 0.6588 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001548/0.146, allocations: 307.7 kB / 0.6591 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.822e-05/0.1461, allocations: 190 kB / 0.6592 GB, free: 10.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.522e-05/0.1462, allocations: 176.3 kB / 0.6594 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.1464, allocations: 109 kB / 0.6595 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.1465, allocations: 184.2 kB / 0.6597 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.702e-05/0.1465, allocations: 105 kB / 0.6598 GB, free: 9.586 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.217e-05/0.1466, allocations: 79.28 kB / 0.6599 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.41e-07/0.1466, allocations: 0 / 0.6599 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002472/0.1469, allocations: 19.88 kB / 0.6599 GB, free: 9.488 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.0005784/0.1474, allocations: 0.8437 MB / 0.6607 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.392e-05/0.1475, allocations: 11.94 kB / 0.6607 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1475, allocations: 0 / 0.6607 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.857e-06/0.1475, allocations: 4.062 kB / 0.6607 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004186/0.148, allocations: 461.6 kB / 0.6612 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.1491, allocations: 1.328 MB / 0.6625 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.1494, allocations: 0.6768 MB / 0.6631 GB, free: 6.031 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.678e-05/0.1494, allocations: 11.84 kB / 0.6631 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.365e-05/0.1495, allocations: 7.438 kB / 0.6631 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1495, allocations: 0 / 0.6631 GB, free: 6.012 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02299/0.1725, allocations: 1.514 MB / 0.6646 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.138, allocations: 8.656 kB / 0.6646 GB, free: 4.586 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IBPSA_latest_IBPSA.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)