Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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: translateModel(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007979/0.0007979, allocations: 100.2 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.0008325/0.0008327, allocations: 177.3 kB / 15.95 MB, free: 216 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.149/1.149, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001602/0.001602, allocations: 270.8 kB / 291.3 MB, free: 1.98 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.7339/0.7339, allocations: 144.6 MB / 487 MB, free: 7.207 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003749, allocations: 10.41 kB / 0.5683 GB, free: 38.2 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1326, allocations: 83.09 MB / 0.6494 GB, free: 3.633 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.00283/0.1355, allocations: 2.463 MB / 0.6518 GB, free: 1.156 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003085/0.1358, allocations: 329.5 kB / 0.6522 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.061e-05/0.1359, allocations: 3.938 kB / 0.6522 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.866e-05/0.1359, allocations: 0 / 0.6522 GB, free: 0.832 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.291e-05/0.136, allocations: 11.92 kB / 0.6522 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000422/0.1364, allocations: 149.5 kB / 0.6523 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.28e-05/0.1365, allocations: 20.48 kB / 0.6523 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.503e-05/0.1365, allocations: 0.625 kB / 0.6523 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.106e-05/0.1366, allocations: 12 kB / 0.6523 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.757e-05/0.1366, allocations: 9.391 kB / 0.6523 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.226e-05/0.1366, allocations: 4 kB / 0.6524 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002574/0.1369, allocations: 101.1 kB / 0.6524 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.826e-05/0.1369, allocations: 7.984 kB / 0.6525 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.303e-05/0.137, allocations: 25.7 kB / 0.6525 GB, free: 0.5 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001372/0.1371, allocations: 59.94 kB / 0.6525 GB, free: 452 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1371, allocations: 0.75 kB / 0.6525 GB, free: 452 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1371, allocations: 7.922 kB / 0.6525 GB, free: 444 kB / 446.1 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.1371, allocations: 0.5938 kB / 0.6525 GB, free: 444 kB / 446.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.0003074/0.1374, allocations: 341.1 kB / 0.6529 GB, free: 56 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.1375, allocations: 8.031 kB / 0.6529 GB, free: 48 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.568e-05/0.1375, allocations: 7.906 kB / 0.6529 GB, free: 40 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001082/0.1376, allocations: 163.7 kB / 0.653 GB, free: 15.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.488e-05/0.1377, allocations: 26.45 kB / 0.6531 GB, free: 15.81 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.496e-06/0.1377, allocations: 4 kB / 0.6531 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.1378, allocations: 50.64 kB / 0.6531 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.931e-06/0.1378, allocations: 1.531 kB / 0.6531 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.1379, allocations: 0 / 0.6531 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1379, allocations: 4 kB / 0.6531 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.778e-05/0.1379, allocations: 15.98 kB / 0.6531 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004862/0.1384, allocations: 0.5735 MB / 0.6537 GB, free: 15.04 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.226e-05/0.1385, allocations: 26.58 kB / 0.6537 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001883/0.1387, allocations: 333.1 kB / 0.654 GB, free: 14.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.1387, allocations: 31.44 kB / 0.6541 GB, free: 14.56 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 1.143e-06/0.1387, allocations: 3.938 kB / 0.6541 GB, free: 14.56 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001193/0.1388, allocations: 38.41 kB / 0.6541 GB, free: 14.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.828e-05/0.1389, allocations: 53.25 kB / 0.6542 GB, free: 14.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.781e-05/0.1389, allocations: 97.86 kB / 0.6543 GB, free: 14.35 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.283e-05/0.1389, allocations: 25.7 kB / 0.6543 GB, free: 14.32 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.139, allocations: 92.03 kB / 0.6544 GB, free: 14.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.865e-06/0.139, allocations: 8.594 kB / 0.6544 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.426e-06/0.139, allocations: 0.875 kB / 0.6544 GB, free: 14.21 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.1391, allocations: 318.7 kB / 0.6547 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/0.1391, allocations: 4.75 kB / 0.6547 GB, free: 13.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.819e-05/0.1391, allocations: 16.41 kB / 0.6547 GB, free: 13.87 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.949e-05/0.1392, allocations: 11.98 kB / 0.6547 GB, free: 13.86 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1392, allocations: 0 / 0.6547 GB, free: 13.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.165e-05/0.1392, allocations: 49.58 kB / 0.6548 GB, free: 13.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.1393, allocations: 11.11 kB / 0.6548 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.1393, allocations: 0 / 0.6548 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.1393, allocations: 4.094 kB / 0.6548 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.089e-05/0.1393, allocations: 7.984 kB / 0.6548 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.449e-06/0.1393, allocations: 0.625 kB / 0.6548 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.714e-05/0.1394, allocations: 0 / 0.6548 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.1394, allocations: 5.406 kB / 0.6548 GB, free: 13.78 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.943e-05/0.1394, allocations: 109.8 kB / 0.6549 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.1395, allocations: 4.906 kB / 0.6549 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.982e-05/0.1396, allocations: 125.4 kB / 0.655 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-05/0.1396, allocations: 179 kB / 0.6552 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.482e-05/0.1397, allocations: 176.3 kB / 0.6554 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-05/0.1397, allocations: 180.2 kB / 0.6555 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001782/0.1399, allocations: 411 kB / 0.6559 GB, free: 12.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.003e-05/0.1399, allocations: 108.9 kB / 0.656 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.543e-05/0.14, allocations: 101 kB / 0.6561 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.648e-05/0.14, allocations: 181.4 kB / 0.6563 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.894e-05/0.1401, allocations: 180.2 kB / 0.6565 GB, free: 11.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.67e-05/0.1401, allocations: 188.5 kB / 0.6566 GB, free: 11.75 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.521e-05/0.1402, allocations: 188.2 kB / 0.6568 GB, free: 11.56 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001033/0.1403, allocations: 303.7 kB / 0.6571 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.162e-05/0.1404, allocations: 190 kB / 0.6573 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.58e-05/0.1404, allocations: 180.3 kB / 0.6575 GB, free: 10.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001661/0.1406, allocations: 108.9 kB / 0.6576 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.156e-05/0.1407, allocations: 184.2 kB / 0.6578 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/0.1407, allocations: 101.3 kB / 0.6578 GB, free: 10.44 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.622e-05/0.1408, allocations: 91.22 kB / 0.6579 GB, free: 10.35 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1408, allocations: 0 / 0.6579 GB, free: 10.35 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.141, allocations: 43.86 kB / 0.658 GB, free: 10.31 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.0002003/0.1412, allocations: 234.4 kB / 0.6582 GB, free: 10.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 5.473e-05/0.1413, allocations: 8 kB / 0.6582 GB, free: 10.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1413, allocations: 0 / 0.6582 GB, free: 10.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 1.092e-06/0.1413, allocations: 0 / 0.6582 GB, free: 10.06 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003296/0.1416, allocations: 0.5276 MB / 0.6587 GB, free: 9.527 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001893/0.1418, allocations: 188 kB / 0.6589 GB, free: 9.312 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.142, allocations: 0.6809 MB / 0.6596 GB, free: 8.605 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.512e-05/0.1421, allocations: 8.141 kB / 0.6596 GB, free: 8.602 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.249e-05/0.1421, allocations: 7.438 kB / 0.6596 GB, free: 8.594 MB / 462.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1421, allocations: 0 / 0.6596 GB, free: 8.594 MB / 462.1 MB Notification: Performance of Templates: time 0.002701/0.1448, allocations: 1.12 MB / 0.6607 GB, free: 7.516 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & ./BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: