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: translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008002/0.0008002, allocations: 100.1 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.0007992/0.0007992, 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.15/1.15, 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.001579/0.001579, allocations: 266.6 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.7307/0.7307, allocations: 144.6 MB / 487 MB, free: 7.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003601/0.0003601, allocations: 16.95 kB / 0.5683 GB, free: 38.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1159, allocations: 83.07 MB / 0.6494 GB, free: 3.648 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.003316/0.1192, allocations: 3.398 MB / 0.6527 GB, free: 244 kB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001372/0.1194, allocations: 125.3 kB / 0.6528 GB, free: 120 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.9e-05/0.1194, allocations: 0 / 0.6528 GB, free: 120 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 7.377e-05/0.1195, allocations: 4 kB / 0.6528 GB, free: 116 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.752e-05/0.1195, allocations: 8.625 kB / 0.6529 GB, free: 108 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002247/0.1197, allocations: 73.17 kB / 0.6529 GB, free: 36 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.1198, allocations: 20.59 kB / 0.6529 GB, free: 16 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.1198, allocations: 0.875 kB / 0.6529 GB, free: 16 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.8e-05/0.1199, allocations: 15.97 kB / 0.653 GB, free: 0 / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.354e-05/0.1199, allocations: 8.859 kB / 0.653 GB, free: 15.99 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.007e-05/0.1199, allocations: 0 / 0.653 GB, free: 15.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.1201, allocations: 32.53 kB / 0.653 GB, free: 15.96 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.267e-05/0.1201, allocations: 8.516 kB / 0.653 GB, free: 15.95 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 1.935e-05/0.1201, allocations: 29.7 kB / 0.653 GB, free: 15.91 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 7.674e-05/0.1202, allocations: 28.58 kB / 0.6531 GB, free: 15.89 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.1202, allocations: 1.562 kB / 0.6531 GB, free: 15.89 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.1202, allocations: 0 / 0.6531 GB, free: 15.89 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.795e-06/0.1202, allocations: 0 / 0.6531 GB, free: 15.89 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.0002754/0.1205, allocations: 332.3 kB / 0.6534 GB, free: 15.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.1206, allocations: 11.97 kB / 0.6534 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.761e-05/0.1206, allocations: 0.7188 kB / 0.6534 GB, free: 15.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.605e-05/0.1207, allocations: 167 kB / 0.6536 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.253e-05/0.1208, allocations: 34.38 kB / 0.6536 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.782e-06/0.1208, allocations: 4.703 kB / 0.6536 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.1209, allocations: 46.52 kB / 0.6536 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.1209, allocations: 3.938 kB / 0.6536 GB, free: 15.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.1209, allocations: 4 kB / 0.6536 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.1209, allocations: 0.625 kB / 0.6536 GB, free: 15.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.598e-05/0.121, allocations: 17.86 kB / 0.6537 GB, free: 15.19 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003448/0.1213, allocations: 338 kB / 0.654 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.798e-05/0.1214, allocations: 20.48 kB / 0.654 GB, free: 14.76 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.392e-05/0.1214, allocations: 81.17 kB / 0.6541 GB, free: 14.66 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.624e-05/0.1215, allocations: 30.56 kB / 0.6541 GB, free: 14.62 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.1215, allocations: 0.6562 kB / 0.6541 GB, free: 14.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001125/0.1216, allocations: 46.12 kB / 0.6542 GB, free: 14.57 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.1216, allocations: 53.56 kB / 0.6542 GB, free: 14.51 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.838e-05/0.1217, allocations: 101.8 kB / 0.6543 GB, free: 14.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.1217, allocations: 29.7 kB / 0.6543 GB, free: 14.37 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.395e-05/0.1218, allocations: 84.05 kB / 0.6544 GB, free: 14.28 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.568e-06/0.1218, allocations: 4.562 kB / 0.6544 GB, free: 14.28 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.1218, allocations: 0 / 0.6544 GB, free: 14.28 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.031e-05/0.1219, allocations: 315.4 kB / 0.6547 GB, free: 13.96 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.249e-05/0.1219, allocations: 11.44 kB / 0.6547 GB, free: 13.95 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.979e-05/0.1219, allocations: 17.7 kB / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.574e-05/0.1219, allocations: 4 kB / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1219, allocations: 0 / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 6.078e-05/0.122, allocations: 49.62 kB / 0.6548 GB, free: 13.87 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.122, allocations: 6 kB / 0.6548 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-06/0.122, allocations: 4 kB / 0.6548 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.105e-06/0.122, allocations: 0.6562 kB / 0.6548 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.448e-05/0.1221, allocations: 4 kB / 0.6548 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.1221, allocations: 0.8125 kB / 0.6548 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.864e-05/0.1221, allocations: 8.219 kB / 0.6548 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.1221, allocations: 0.9062 kB / 0.6548 GB, free: 13.85 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 6.405e-05/0.1222, allocations: 118.8 kB / 0.6549 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.1222, allocations: 4 kB / 0.6549 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.585e-05/0.1223, allocations: 129 kB / 0.6551 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.671e-05/0.1224, allocations: 180.2 kB / 0.6552 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.238e-05/0.1224, allocations: 188.1 kB / 0.6554 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.26e-05/0.1225, allocations: 176.3 kB / 0.6556 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.1227, allocations: 409.1 kB / 0.656 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-05/0.1227, allocations: 113 kB / 0.6561 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.474e-05/0.1227, allocations: 105 kB / 0.6562 GB, free: 12.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.721e-05/0.1228, allocations: 180.2 kB / 0.6563 GB, free: 12.16 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.033e-05/0.1228, allocations: 180.2 kB / 0.6565 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.581e-05/0.1229, allocations: 180.2 kB / 0.6567 GB, free: 11.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.397e-05/0.1229, allocations: 180.3 kB / 0.6569 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001056/0.123, allocations: 315.7 kB / 0.6572 GB, free: 11.28 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.994e-05/0.1231, allocations: 182.1 kB / 0.6573 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.604e-05/0.1232, allocations: 188.2 kB / 0.6575 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1233, allocations: 105 kB / 0.6576 GB, free: 10.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.25e-05/0.1234, allocations: 184.3 kB / 0.6578 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.1234, allocations: 104.9 kB / 0.6579 GB, free: 10.48 MB / 462.1 MB Notification: Performance of sorting global known variables: time 3.737e-05/0.1234, allocations: 91.27 kB / 0.658 GB, free: 10.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1234, allocations: 0 / 0.658 GB, free: 10.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002089/0.1237, allocations: 16 kB / 0.658 GB, free: 10.38 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.0001242/0.1238, allocations: 186.5 kB / 0.6582 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 5.399e-05/0.1239, allocations: 8 kB / 0.6582 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1239, allocations: 0 / 0.6582 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 3.076e-06/0.1239, allocations: 3.938 kB / 0.6582 GB, free: 10.17 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.1242, allocations: 0.5263 MB / 0.6587 GB, free: 9.641 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/0.1244, allocations: 191.9 kB / 0.6589 GB, free: 9.422 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001828/0.1245, allocations: 0.6809 MB / 0.6595 GB, free: 8.715 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 3.227e-05/0.1246, allocations: 4 kB / 0.6595 GB, free: 8.711 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.363e-05/0.1246, allocations: 11.42 kB / 0.6596 GB, free: 8.699 MB / 462.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1246, allocations: 0 / 0.6596 GB, free: 8.699 MB / 462.1 MB Notification: Performance of Templates: time 0.002065/0.1267, allocations: 0.5502 MB / 0.6601 GB, free: 8.152 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile Environment - environmentSimulation: (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 & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) Environment - environmentSimulation: