Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: translateModel(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet") translateModel(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.001239/0.001238, allocations: 105.1 kB / 16.35 MB, free: 5.824 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.001208/0.001208, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.271/1.271, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7476/0.7476, allocations: 135.1 MB / 426.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 59.89 kB / 0.5067 GB, free: 7.676 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3172, allocations: 80.91 MB / 0.5858 GB, free: 25.37 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet): time 0.07574/0.393, allocations: 94.56 MB / 0.6781 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03296/0.426, allocations: 25.38 MB / 0.7029 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004203/0.4302, allocations: 143.2 kB / 0.703 GB, free: 2.168 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.004626/0.4349, allocations: 1.724 MB / 0.7047 GB, free: 448 kB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.01033/0.4453, allocations: 4.011 MB / 0.7086 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.009764/0.4551, allocations: 3.532 MB / 0.7121 GB, free: 8.91 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01145/0.4665, allocations: 8.183 MB / 0.7201 GB, free: 0.707 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004133/0.4707, allocations: 2.853 MB / 0.7228 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006736/0.4774, allocations: 3.219 MB / 0.726 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003601/0.4811, allocations: 2.287 MB / 0.7282 GB, free: 8.273 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0006382/0.4817, allocations: 304 kB / 0.7285 GB, free: 7.977 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005027/0.4867, allocations: 2.41 MB / 0.7309 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001004/0.4878, allocations: 1.051 MB / 0.7319 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002227/0.49, allocations: 1.935 MB / 0.7338 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.008279/0.4983, allocations: 5.974 MB / 0.7396 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.4983, allocations: 4 kB / 0.7396 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.824e-06/0.4983, allocations: 0 / 0.7396 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.661e-05/0.4984, allocations: 0 / 0.7396 GB, free: 12.57 MB / 0.5762 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.006971/0.5054, allocations: 4.258 MB / 0.7438 GB, free: 8.238 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.5055, allocations: 13.11 kB / 0.7438 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003435/0.5089, allocations: 0.7607 MB / 0.7445 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005853/0.5148, allocations: 2.988 MB / 0.7475 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.5149, allocations: 151.6 kB / 0.7476 GB, free: 4.266 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002856/0.5152, allocations: 203.9 kB / 0.7478 GB, free: 4.066 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003859/0.5191, allocations: 2.145 MB / 0.7499 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.884e-05/0.5191, allocations: 7.938 kB / 0.7499 GB, free: 1.832 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.5193, allocations: 76 kB / 0.75 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.126e-05/0.5193, allocations: 44 kB / 0.75 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2313/0.7506, allocations: 1.712 MB / 0.7517 GB, free: 154.4 MB / 0.5762 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.01319/0.7638, allocations: 9.817 MB / 0.7613 GB, free: 148.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.7661, allocations: 1.105 MB / 0.7624 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.7674, allocations: 0.5356 MB / 0.7629 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005607/0.773, allocations: 4.537 MB / 0.7673 GB, free: 143.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.773, allocations: 48.91 kB / 0.7674 GB, free: 143.4 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=93): time 2.445e-06/0.773, allocations: 0 / 0.7674 GB, free: 143.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93): time 0.002938/0.776, allocations: 1.478 MB / 0.7688 GB, free: 142.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.776, allocations: 147.5 kB / 0.7689 GB, free: 142.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004255/0.7803, allocations: 3.7 MB / 0.7725 GB, free: 140.7 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.7804, allocations: 58.8 kB / 0.7726 GB, free: 140.7 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.7816, allocations: 1.624 MB / 0.7742 GB, free: 139.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002598/0.7819, allocations: 334.4 kB / 0.7745 GB, free: 139 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004662/0.7824, allocations: 358.5 kB / 0.7749 GB, free: 138.8 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.334e-05/0.7824, allocations: 305.1 kB / 0.7751 GB, free: 138.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.7836, allocations: 0.5502 MB / 0.7757 GB, free: 138.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/0.7849, allocations: 1.229 MB / 0.7769 GB, free: 137.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.787, allocations: 1.657 MB / 0.7785 GB, free: 135.8 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.787, allocations: 7.844 kB / 0.7785 GB, free: 135.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=209) (initialization): time 0.00334/0.7904, allocations: 2.023 MB / 0.7805 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.195e-05/0.7904, allocations: 18.95 kB / 0.7805 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.7904, allocations: 21.44 kB / 0.7805 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.288e-05/0.7905, allocations: 27.62 kB / 0.7805 GB, free: 134.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.7918, allocations: 408.3 kB / 0.7809 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.519e-05/0.7918, allocations: 40.55 kB / 0.781 GB, free: 134.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001863/0.7937, allocations: 303.5 kB / 0.7813 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.7938, allocations: 93.84 kB / 0.7814 GB, free: 134.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001809/0.7956, allocations: 1.187 MB / 0.7825 GB, free: 133.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001353/0.797, allocations: 1.22 MB / 0.7837 GB, free: 132.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00201/0.799, allocations: 1.657 MB / 0.7853 GB, free: 130.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.762e-06/0.799, allocations: 4 kB / 0.7853 GB, free: 130.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=209) (initialization_lambda0): time 0.003074/0.8021, allocations: 2.016 MB / 0.7873 GB, free: 128.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.8021, allocations: 12.84 kB / 0.7873 GB, free: 128.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.8021, allocations: 23.94 kB / 0.7873 GB, free: 128.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.8022, allocations: 28 kB / 0.7874 GB, free: 128.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.8034, allocations: 414.2 kB / 0.7878 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.036e-05/0.8034, allocations: 39.86 kB / 0.7878 GB, free: 128.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.8051, allocations: 250.8 kB / 0.788 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.8052, allocations: 83.98 kB / 0.7881 GB, free: 128.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 7 (heatPump.hysteresisTSetLimit.y,$PRE.heatPump.hysteresisTSetLimit.y,heatPump.on_security.y,heatPump.hysteresis1.y,$PRE.heatPump.hysteresis1.y,heatPump.hysteresis.y,$PRE.heatPump.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 205 * Array equations: 2 * 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 0.0002753/0.8055, allocations: 304.8 kB / 0.7884 GB, free: 127.8 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003346/0.8059, allocations: 323.9 kB / 0.7887 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002741/0.8086, allocations: 1.753 MB / 0.7904 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.8086, allocations: 19.98 kB / 0.7904 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.8086, allocations: 0 / 0.7904 GB, free: 125.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001608/0.8103, allocations: 1.095 MB / 0.7915 GB, free: 124.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004764/0.815, allocations: 3.969 MB / 0.7954 GB, free: 120.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.815, allocations: 8 kB / 0.7954 GB, free: 120.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008145/0.8159, allocations: 227.7 kB / 0.7956 GB, free: 120.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.225e-06/0.8159, allocations: 11.94 kB / 0.7956 GB, free: 120.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.556e-05/0.816, allocations: 43.97 kB / 0.7957 GB, free: 120.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.816, allocations: 8 kB / 0.7957 GB, free: 120.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.816, allocations: 11.94 kB / 0.7957 GB, free: 120.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.819, allocations: 2.321 MB / 0.7979 GB, free: 117.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009254/0.8199, allocations: 0.5824 MB / 0.7985 GB, free: 117.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003201/0.8202, allocations: 32 kB / 0.7985 GB, free: 117.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.8215, allocations: 103.9 kB / 0.7986 GB, free: 117.1 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/0.8217, allocations: 108.7 kB / 0.7987 GB, free: 117 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-05/0.8217, allocations: 51.97 kB / 0.7988 GB, free: 116.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.002601/0.8243, allocations: 2.551 MB / 0.8013 GB, free: 114.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8244, allocations: 0 / 0.8013 GB, free: 114.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002842/0.8272, allocations: 1.485 MB / 0.8027 GB, free: 112.9 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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.hysteresis.y,heatPump.hysteresisTSetLimit.y,heatPump.hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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.001672/0.8289, allocations: 0.9616 MB / 0.8037 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003556/0.8325, allocations: 2.283 MB / 0.8059 GB, free: 110 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.8325, allocations: 3.906 kB / 0.8059 GB, free: 110 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001001/0.8335, allocations: 0.6747 MB / 0.8066 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004304/0.8378, allocations: 1.443 MB / 0.808 GB, free: 107.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005694/0.8435, allocations: 5.607 MB / 0.8135 GB, free: 102.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.8446, allocations: 2.009 MB / 0.8154 GB, free: 100.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001918/0.8465, allocations: 0.732 MB / 0.8161 GB, free: 99.44 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.8469, allocations: 235.3 kB / 0.8164 GB, free: 99.21 MB / 0.5762 GB Notification: Performance of SimCode: time 4.21e-07/0.8469, allocations: 0 / 0.8164 GB, free: 99.21 MB / 0.5762 GB Notification: Performance of Templates: time 0.06629/0.9132, allocations: 53.74 MB / 0.8688 GB, free: 46.11 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.sim & ./IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet.pipe 2>&1)