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.001596/0.001597, allocations: 105.6 kB / 16.41 MB, free: 6.496 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.002115/0.002115, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8511/0.8511, allocations: 132.2 MB / 423.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 74.36 kB / 0.582 GB, free: 23.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1679, allocations: 80.2 MB / 0.6603 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatPumps.Examples.HeatPump_WaterWaterTSet): time 0.5228/0.6907, allocations: 94.56 MB / 0.7527 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.03525/0.726, allocations: 25.37 MB / 0.7774 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006192/0.7322, allocations: 132.6 kB / 0.7776 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.005774/0.7381, allocations: 1.722 MB / 0.7792 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.01376/0.7519, allocations: 4.013 MB / 0.7832 GB, free: 9.879 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.01156/0.7634, allocations: 3.547 MB / 0.7866 GB, free: 9.57 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01609/0.7796, allocations: 8.174 MB / 0.7946 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005542/0.7852, allocations: 2.868 MB / 0.7974 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008913/0.7941, allocations: 3.215 MB / 0.8006 GB, free: 3.715 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005228/0.7994, allocations: 2.292 MB / 0.8028 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.8005, allocations: 305.2 kB / 0.8031 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007399/0.8079, allocations: 2.411 MB / 0.8054 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001469/0.8094, allocations: 1.044 MB / 0.8065 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003503/0.8129, allocations: 1.931 MB / 0.8083 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.824, allocations: 5.979 MB / 0.8142 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.824, allocations: 0 / 0.8142 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.394e-06/0.8241, allocations: 2.812 kB / 0.8142 GB, free: 11.66 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001721/0.8242, allocations: 4 kB / 0.8142 GB, free: 11.66 MB / 0.5919 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.008621/0.8329, allocations: 4.262 MB / 0.8183 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.8329, allocations: 10.91 kB / 0.8184 GB, free: 8.617 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003649/0.8366, allocations: 0.7637 MB / 0.8191 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006368/0.843, allocations: 2.984 MB / 0.822 GB, free: 6.176 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001388/0.8431, allocations: 150.8 kB / 0.8222 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003638/0.8435, allocations: 195.2 kB / 0.8223 GB, free: 6.043 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004246/0.8478, allocations: 2.145 MB / 0.8244 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.047e-05/0.8478, allocations: 7.875 kB / 0.8244 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001689/0.848, allocations: 83.94 kB / 0.8245 GB, free: 4.398 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.848, allocations: 44 kB / 0.8246 GB, free: 4.355 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003868/0.8519, allocations: 1.716 MB / 0.8262 GB, free: 2.637 MB / 0.5919 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.0167/0.8686, allocations: 9.834 MB / 0.8359 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/0.8711, allocations: 1.097 MB / 0.8369 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/0.8723, allocations: 0.5479 MB / 0.8375 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007749/0.8801, allocations: 4.523 MB / 0.8419 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.8802, allocations: 51.5 kB / 0.8419 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=93): time 2.444e-06/0.8802, allocations: 3.938 kB / 0.8419 GB, free: 1.703 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93): time 0.004198/0.8844, allocations: 1.477 MB / 0.8434 GB, free: 244 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.8845, allocations: 137.5 kB / 0.8435 GB, free: 76 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008249/0.8928, allocations: 3.705 MB / 0.8471 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002664/0.8931, allocations: 57.7 kB / 0.8472 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001863/0.895, allocations: 1.621 MB / 0.8488 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004993/0.8955, allocations: 335.6 kB / 0.8491 GB, free: 10.37 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006946/0.8962, allocations: 351.1 kB / 0.8494 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.754e-05/0.8963, allocations: 301.1 kB / 0.8497 GB, free: 9.723 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.8977, allocations: 0.5591 MB / 0.8502 GB, free: 9.16 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00194/0.8996, allocations: 1.22 MB / 0.8514 GB, free: 7.641 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002957/0.9026, allocations: 1.665 MB / 0.8531 GB, free: 5.723 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/0.9027, allocations: 8 kB / 0.8531 GB, free: 5.715 MB / 0.6231 GB Notification: Performance of matching and sorting (n=209) (initialization): time 0.005023/0.9077, allocations: 2.019 MB / 0.855 GB, free: 3.703 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.9077, allocations: 19.98 kB / 0.8551 GB, free: 3.684 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-05/0.9078, allocations: 18.19 kB / 0.8551 GB, free: 3.668 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.783e-05/0.9078, allocations: 32 kB / 0.8551 GB, free: 3.637 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.9093, allocations: 411.3 kB / 0.8555 GB, free: 3.234 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-05/0.9094, allocations: 39.86 kB / 0.8555 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002814/0.9122, allocations: 303 kB / 0.8558 GB, free: 2.898 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002119/0.9124, allocations: 91.98 kB / 0.8559 GB, free: 2.809 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002701/0.9151, allocations: 1.187 MB / 0.8571 GB, free: 1.617 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00195/0.9171, allocations: 1.22 MB / 0.8583 GB, free: 104 kB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002952/0.92, allocations: 1.653 MB / 0.8599 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.094e-05/0.9201, allocations: 4 kB / 0.8599 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of matching and sorting (n=209) (initialization_lambda0): time 0.005125/0.9252, allocations: 2.013 MB / 0.8619 GB, free: 12.16 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.9253, allocations: 18.44 kB / 0.8619 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.369e-05/0.9253, allocations: 20 kB / 0.8619 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/0.9253, allocations: 28 kB / 0.8619 GB, free: 12.1 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.9268, allocations: 411.6 kB / 0.8623 GB, free: 11.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.783e-05/0.9269, allocations: 39.86 kB / 0.8623 GB, free: 11.66 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.9299, allocations: 252 kB / 0.8626 GB, free: 11.41 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002178/0.9301, allocations: 95.91 kB / 0.8627 GB, free: 11.32 MB / 0.6387 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.0005366/0.9306, allocations: 307.5 kB / 0.863 GB, free: 11.01 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/0.9318, allocations: 327.8 kB / 0.8633 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004122/0.9359, allocations: 1.745 MB / 0.865 GB, free: 8.961 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-05/0.936, allocations: 15.98 kB / 0.865 GB, free: 8.945 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.936, allocations: 0 / 0.865 GB, free: 8.945 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002089/0.9381, allocations: 1.102 MB / 0.8661 GB, free: 7.812 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008905/0.947, allocations: 3.97 MB / 0.87 GB, free: 3.738 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.9471, allocations: 8.75 kB / 0.87 GB, free: 3.73 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009893/0.9481, allocations: 223.6 kB / 0.8702 GB, free: 3.512 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.926e-05/0.9481, allocations: 8 kB / 0.8702 GB, free: 3.504 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001068/0.9482, allocations: 43.97 kB / 0.8702 GB, free: 3.461 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-05/0.9482, allocations: 11.94 kB / 0.8702 GB, free: 3.449 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.837e-06/0.9482, allocations: 12 kB / 0.8702 GB, free: 3.438 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004701/0.9529, allocations: 2.319 MB / 0.8725 GB, free: 1.027 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001907/0.9549, allocations: 0.5863 MB / 0.8731 GB, free: 428 kB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/0.9559, allocations: 28 kB / 0.8731 GB, free: 400 kB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002185/0.9581, allocations: 107.9 kB / 0.8732 GB, free: 292 kB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.9584, allocations: 108.7 kB / 0.8733 GB, free: 184 kB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.9586, allocations: 51.97 kB / 0.8734 GB, free: 132 kB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.005506/0.9641, allocations: 2.552 MB / 0.8759 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.002e-06/0.9641, allocations: 0 / 0.8759 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.006741/0.9709, allocations: 1.481 MB / 0.8773 GB, free: 12.12 MB / 0.6544 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.002725/0.9736, allocations: 0.9666 MB / 0.8783 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.005529/0.9792, allocations: 2.277 MB / 0.8805 GB, free: 9.098 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/0.9792, allocations: 5.938 kB / 0.8805 GB, free: 9.094 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.9807, allocations: 0.6706 MB / 0.8811 GB, free: 8.422 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007401/0.9881, allocations: 1.432 MB / 0.8825 GB, free: 7.016 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.9984, allocations: 5.737 MB / 0.8881 GB, free: 1.176 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002157/1.001, allocations: 1.989 MB / 0.8901 GB, free: 15.15 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009629/1.002, allocations: 251.3 kB / 0.8903 GB, free: 14.91 MB / 0.67 GB Notification: Performance of SimCode: time 8.52e-07/1.002, allocations: 0 / 0.8903 GB, free: 14.91 MB / 0.67 GB Notification: Performance of Templates: time 0.08251/1.084, allocations: 52.82 MB / 0.9419 GB, free: 10.34 MB / 0.7169 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)