Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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.0009104/0.0009104, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.0009084/0.0009085, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001659/0.001659, allocations: 262.8 kB / 291.2 MB, free: 2.004 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.789/0.789, allocations: 144.6 MB / 487 MB, free: 7.172 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003746/0.0003746, allocations: 11.06 kB / 0.5684 GB, free: 38.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1339, allocations: 83.08 MB / 0.6495 GB, free: 3.508 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.00351/0.1375, allocations: 3.387 MB / 0.6528 GB, free: 108 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001586/0.1377, allocations: 132.5 kB / 0.653 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.791e-05/0.1377, allocations: 0 / 0.653 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 7.98e-05/0.1378, allocations: 0.5938 kB / 0.653 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 3.105e-05/0.1378, allocations: 5.484 kB / 0.653 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.1381, allocations: 72.3 kB / 0.653 GB, free: 15.9 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 5.413e-05/0.1382, allocations: 20.72 kB / 0.653 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.004e-05/0.1382, allocations: 4 kB / 0.6531 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.903e-05/0.1382, allocations: 4.531 kB / 0.6531 GB, free: 15.88 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.942e-05/0.1383, allocations: 15.91 kB / 0.6531 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.195e-05/0.1383, allocations: 5.031 kB / 0.6531 GB, free: 15.86 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.1385, allocations: 31.97 kB / 0.6531 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.087e-05/0.1385, allocations: 5.531 kB / 0.6531 GB, free: 15.82 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 2.075e-05/0.1386, allocations: 29.64 kB / 0.6531 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 8.451e-05/0.1386, allocations: 27.98 kB / 0.6532 GB, free: 15.76 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.1387, allocations: 0 / 0.6532 GB, free: 15.76 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1387, allocations: 0.7188 kB / 0.6532 GB, free: 15.76 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.1387, allocations: 0 / 0.6532 GB, free: 15.76 MB / 462.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.0003092/0.139, allocations: 328.8 kB / 0.6535 GB, free: 15.39 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.139, allocations: 12.03 kB / 0.6535 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.499e-05/0.1391, allocations: 39.27 kB / 0.6535 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.1391, allocations: 0 / 0.6535 GB, free: 15.33 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.312e-05/0.1392, allocations: 167.8 kB / 0.6537 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.578e-05/0.1393, allocations: 30.48 kB / 0.6537 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-06/0.1393, allocations: 0 / 0.6537 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.1394, allocations: 43.45 kB / 0.6538 GB, free: 15.05 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.1394, allocations: 15.97 kB / 0.6538 GB, free: 15.03 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.1394, allocations: 4 kB / 0.6538 GB, free: 15.03 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.1394, allocations: 3.938 kB / 0.6538 GB, free: 15.02 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.745e-05/0.1395, allocations: 16.61 kB / 0.6538 GB, free: 15.01 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003663/0.1399, allocations: 330.9 kB / 0.6541 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.028e-05/0.1399, allocations: 23.31 kB / 0.6541 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.339e-05/0.14, allocations: 83.67 kB / 0.6542 GB, free: 14.49 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.14, allocations: 34.56 kB / 0.6543 GB, free: 14.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.14, allocations: 0 / 0.6543 GB, free: 14.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001416/0.1402, allocations: 39.36 kB / 0.6543 GB, free: 14.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.843e-05/0.1402, allocations: 55.39 kB / 0.6543 GB, free: 14.34 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.015e-05/0.1403, allocations: 105.7 kB / 0.6544 GB, free: 14.22 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.1403, allocations: 25.7 kB / 0.6545 GB, free: 14.19 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.37e-05/0.1403, allocations: 88.75 kB / 0.6546 GB, free: 14.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.372e-06/0.1404, allocations: 9.25 kB / 0.6546 GB, free: 14.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.485e-06/0.1404, allocations: 0 / 0.6546 GB, free: 14.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.8e-05/0.1405, allocations: 314.8 kB / 0.6549 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.23e-05/0.1405, allocations: 4.906 kB / 0.6549 GB, free: 13.77 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.796e-05/0.1405, allocations: 16.53 kB / 0.6549 GB, free: 13.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.03e-05/0.1405, allocations: 15.92 kB / 0.6549 GB, free: 13.74 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1405, allocations: 0 / 0.6549 GB, free: 13.74 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.236e-05/0.1406, allocations: 37.7 kB / 0.6549 GB, free: 13.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/0.1406, allocations: 7.984 kB / 0.6549 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1406, allocations: 5.719 kB / 0.6549 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.1406, allocations: 0 / 0.6549 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.815e-05/0.1407, allocations: 4 kB / 0.6549 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1407, allocations: 3.938 kB / 0.655 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.907e-05/0.1407, allocations: 8 kB / 0.655 GB, free: 13.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.1407, allocations: 5.047 kB / 0.655 GB, free: 13.66 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.815e-05/0.1408, allocations: 106 kB / 0.6551 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/0.1408, allocations: 8 kB / 0.6551 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.984e-05/0.1409, allocations: 120.9 kB / 0.6552 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.537e-05/0.141, allocations: 188.1 kB / 0.6554 GB, free: 13.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.374e-05/0.141, allocations: 176.3 kB / 0.6555 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.48e-05/0.1411, allocations: 176.3 kB / 0.6557 GB, free: 12.86 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001801/0.1413, allocations: 421.1 kB / 0.6561 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.707e-05/0.1413, allocations: 105 kB / 0.6562 GB, free: 12.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.757e-05/0.1413, allocations: 108.9 kB / 0.6563 GB, free: 12.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.294e-05/0.1414, allocations: 176.3 kB / 0.6565 GB, free: 11.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.687e-05/0.1414, allocations: 176.3 kB / 0.6566 GB, free: 11.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.315e-05/0.1415, allocations: 180.2 kB / 0.6568 GB, free: 11.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.868e-05/0.1415, allocations: 192.2 kB / 0.657 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001061/0.1416, allocations: 303.7 kB / 0.6573 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.1417, allocations: 186 kB / 0.6575 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/0.1418, allocations: 180.2 kB / 0.6576 GB, free: 10.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.1419, allocations: 112.9 kB / 0.6577 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.142, allocations: 188.2 kB / 0.6579 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.464e-05/0.142, allocations: 101 kB / 0.658 GB, free: 10.31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.142, allocations: 87.28 kB / 0.6581 GB, free: 10.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.142, allocations: 0 / 0.6581 GB, free: 10.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002223/0.1423, allocations: 16 kB / 0.6581 GB, free: 10.21 MB / 462.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003792/0.1427, allocations: 0.832 MB / 0.6589 GB, free: 9.348 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 7.242e-05/0.1427, allocations: 4 kB / 0.6589 GB, free: 9.344 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1428, allocations: 0 / 0.6589 GB, free: 9.344 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.218e-06/0.1428, allocations: 4 kB / 0.6589 GB, free: 9.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.1431, allocations: 0.5321 MB / 0.6595 GB, free: 8.805 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003735/0.1435, allocations: 225.5 kB / 0.6597 GB, free: 8.539 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.1437, allocations: 0.677 MB / 0.6603 GB, free: 7.836 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.812e-05/0.1438, allocations: 8.281 kB / 0.6603 GB, free: 7.828 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.418e-05/0.1438, allocations: 7.438 kB / 0.6604 GB, free: 7.82 MB / 462.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1438, allocations: 0 / 0.6604 GB, free: 7.82 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2308/0.3747, allocations: 1.236 MB / 0.6616 GB, free: 6.762 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/0.3749, allocations: 196 kB / 0.6617 GB, free: 6.527 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.422/1.797, allocations: 4 kB / 0.6618 GB, free: 6.523 MB / 462.1 MB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: