Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet") translateModel(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009573/0.0009572, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001201/0.001201, allocations: 168.7 kB / 15.95 MB, free: 204 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.295/1.295, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7445/0.7445, allocations: 132.4 MB / 423.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002952/0.0002953, allocations: 8.562 kB / 0.5034 GB, free: 4.246 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.353, allocations: 81.58 MB / 0.5831 GB, free: 3.969 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet): time 0.0816/0.4346, allocations: 87.01 MB / 0.668 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03155/0.4662, allocations: 23.74 MB / 0.6912 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00397/0.4702, allocations: 111.3 kB / 0.6913 GB, free: 1.484 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004/0.4743, allocations: 1.188 MB / 0.6925 GB, free: 296 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00866/0.4829, allocations: 3.286 MB / 0.6957 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006996/0.49, allocations: 2.647 MB / 0.6983 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.01077/0.5007, allocations: 9.131 MB / 0.7072 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003882/0.5046, allocations: 2.126 MB / 0.7093 GB, free: 15.05 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005185/0.5098, allocations: 2.587 MB / 0.7118 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003531/0.5134, allocations: 2.139 MB / 0.7139 GB, free: 10.3 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0006751/0.5141, allocations: 116 kB / 0.714 GB, free: 10.19 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004495/0.5186, allocations: 1.724 MB / 0.7157 GB, free: 8.465 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001144/0.5198, allocations: 0.8288 MB / 0.7165 GB, free: 7.633 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.521, allocations: 0.7263 MB / 0.7172 GB, free: 6.898 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00546/0.5264, allocations: 4.388 MB / 0.7215 GB, free: 2.504 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.5265, allocations: 0 / 0.7215 GB, free: 2.504 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.513e-06/0.5265, allocations: 0 / 0.7215 GB, free: 2.504 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.000133/0.5266, allocations: 0 / 0.7215 GB, free: 2.504 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.006652/0.5333, allocations: 3.651 MB / 0.7251 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.5333, allocations: 8.031 kB / 0.7251 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003375/0.5367, allocations: 0.8149 MB / 0.7259 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004979/0.5417, allocations: 2.844 MB / 0.7286 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006291/0.5423, allocations: 276 kB / 0.7289 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002637/0.5426, allocations: 203.9 kB / 0.7291 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00408/0.5467, allocations: 2.198 MB / 0.7312 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.752e-05/0.5467, allocations: 4 kB / 0.7312 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/0.5469, allocations: 79.98 kB / 0.7313 GB, free: 8.23 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.2e-05/0.547, allocations: 44 kB / 0.7314 GB, free: 8.188 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004134/0.5511, allocations: 1.852 MB / 0.7332 GB, free: 6.332 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01397/0.5651, allocations: 9.956 MB / 0.7429 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002691/0.5678, allocations: 1.271 MB / 0.7441 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.5691, allocations: 0.6077 MB / 0.7447 GB, free: 9.977 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005437/0.5745, allocations: 4.234 MB / 0.7489 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.5746, allocations: 47.52 kB / 0.7489 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007073/0.5753, allocations: 126.5 kB / 0.749 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=99): time 2.675e-06/0.5753, allocations: 0 / 0.749 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of matching and sorting (n=99): time 0.003951/0.5793, allocations: 1.765 MB / 0.7508 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/0.5793, allocations: 137.5 kB / 0.7509 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004872/0.5842, allocations: 3.825 MB / 0.7546 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001251/0.5844, allocations: 61.64 kB / 0.7547 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.5857, allocations: 1.542 MB / 0.7562 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.586, allocations: 347.1 kB / 0.7565 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.585e-05/0.5861, allocations: 32 kB / 0.7565 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5862, allocations: 365.9 kB / 0.7569 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/0.5878, allocations: 0.6402 MB / 0.7575 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.5897, allocations: 1.179 MB / 0.7587 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001693/0.5914, allocations: 0.7441 MB / 0.7594 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.5915, allocations: 7.938 kB / 0.7594 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004614/0.5961, allocations: 2.118 MB / 0.7615 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.00027/0.5964, allocations: 0.4898 MB / 0.762 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-05/0.5964, allocations: 16 kB / 0.762 GB, free: 7.34 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.192e-05/0.5964, allocations: 24 kB / 0.762 GB, free: 7.316 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001587/0.598, allocations: 415.4 kB / 0.7624 GB, free: 6.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.722e-05/0.5981, allocations: 27.92 kB / 0.7624 GB, free: 6.883 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002626/0.6007, allocations: 316.8 kB / 0.7627 GB, free: 6.574 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.6009, allocations: 79.97 kB / 0.7628 GB, free: 6.496 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.744e-06/0.6009, allocations: 8 kB / 0.7628 GB, free: 6.488 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003282/0.6042, allocations: 1.659 MB / 0.7644 GB, free: 4.828 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.6042, allocations: 20.06 kB / 0.7644 GB, free: 4.809 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.6042, allocations: 20 kB / 0.7645 GB, free: 4.789 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.6056, allocations: 387.4 kB / 0.7648 GB, free: 4.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.733e-05/0.6056, allocations: 31.86 kB / 0.7649 GB, free: 4.379 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/0.6079, allocations: 266.6 kB / 0.7651 GB, free: 4.121 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.608, allocations: 75.97 kB / 0.7652 GB, free: 4.047 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.heatPump.hysteresis.y,heatPump.hysteresis.y,$PRE.heatPump.hysteresis1.y,heatPump.hysteresis1.y,heatPump.on_security.y,$PRE.heatPump.hysteresisTSetLimit.y,heatPump.hysteresisTSetLimit.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 185 * Array equations: 2 * 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 0.00136/0.6094, allocations: 0.809 MB / 0.766 GB, free: 3.227 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004688/0.6099, allocations: 339.7 kB / 0.7663 GB, free: 2.891 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003993/0.6139, allocations: 2.016 MB / 0.7683 GB, free: 0.8789 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-05/0.6139, allocations: 19.95 kB / 0.7683 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.6139, allocations: 0 / 0.7683 GB, free: 0.8594 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002566/0.6165, allocations: 1.275 MB / 0.7695 GB, free: 15.55 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007135/0.6236, allocations: 4.24 MB / 0.7737 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.6237, allocations: 7.938 kB / 0.7737 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.6248, allocations: 244.2 kB / 0.7739 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.357e-05/0.6248, allocations: 11.95 kB / 0.7739 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-05/0.6249, allocations: 39.97 kB / 0.774 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.147e-05/0.6249, allocations: 11.98 kB / 0.774 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.6249, allocations: 19.92 kB / 0.774 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004629/0.6295, allocations: 2.472 MB / 0.7764 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.6307, allocations: 0.6331 MB / 0.777 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003759/0.6311, allocations: 31.95 kB / 0.7771 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001738/0.6329, allocations: 211.6 kB / 0.7773 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.633, allocations: 100.8 kB / 0.7774 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001065/0.6332, allocations: 55.95 kB / 0.7774 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.003879/0.637, allocations: 2.691 MB / 0.78 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.81e-07/0.6371, allocations: 0 / 0.78 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003564/0.6406, allocations: 1.435 MB / 0.7814 GB, free: 3.129 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 4 (heatPump.vol1.dynBal.U,heatPump.vol2.dynBal.U,TBrine_out.T,TWater_out.T) * Number of discrete variables: 4 (heatPump.hysteresis.y,heatPump.hysteresis1.y,heatPump.on_security.y,heatPump.hysteresisTSetLimit.y) * Number of discrete states: 3 (heatPump.hysteresis1.y,heatPump.hysteresis.y,heatPump.hysteresisTSetLimit.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.001811/0.6424, allocations: 0.8872 MB / 0.7823 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.005047/0.6475, allocations: 2.381 MB / 0.7846 GB, free: 40 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6475, allocations: 5.875 kB / 0.7846 GB, free: 36 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.649, allocations: 0.7171 MB / 0.7853 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006822/0.6559, allocations: 1.546 MB / 0.7868 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008905/0.6648, allocations: 6.616 MB / 0.7933 GB, free: 7.102 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001524/0.6663, allocations: 1.998 MB / 0.7953 GB, free: 5.074 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.003163/0.6695, allocations: 0.7149 MB / 0.796 GB, free: 4.383 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006483/0.6702, allocations: 251.3 kB / 0.7962 GB, free: 4.137 MB / 0.6231 GB Notification: Performance of SimCode: time 1.062e-06/0.6702, allocations: 0 / 0.7962 GB, free: 4.137 MB / 0.6231 GB Notification: Performance of Templates: time 0.3324/1.003, allocations: 58.2 MB / 0.853 GB, free: 190.5 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.makefile (rm -f IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.sim & ./IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe 2>&1)