Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y") translateModel(Buildings.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.571/1.571, allocations: 252 MB / 267.6 MB, free: 10.93 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001047, allocations: 184.8 kB / 327.3 MB, free: 2.191 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.627/1.627, allocations: 205.4 MB / 0.5783 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007596/0.0007596, allocations: 96.17 kB / 0.6829 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003232, allocations: 14.48 kB / 0.797 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2013, allocations: 106.3 MB / 0.9008 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.Carnot_y): time 0.04708/0.2485, allocations: 69.43 MB / 0.9686 GB, free: 10.26 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.01893/0.2675, allocations: 14.03 MB / 0.9823 GB, free: 12.2 MB / 0.6355 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002693/0.2702, allocations: 55.62 kB / 0.9824 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of NFTyping.typeComponents: time 0.002476/0.2727, allocations: 0.5627 MB / 0.9829 GB, free: 11.57 MB / 0.6355 GB Notification: Performance of NFTyping.typeBindings: time 0.007131/0.2799, allocations: 1.973 MB / 0.9849 GB, free: 9.594 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.003686/0.2836, allocations: 0.9488 MB / 0.9858 GB, free: 8.656 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.007409/0.291, allocations: 4.766 MB / 0.9904 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001951/0.293, allocations: 1.005 MB / 0.9914 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002769/0.2958, allocations: 1.279 MB / 0.9927 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001754/0.2976, allocations: 1.077 MB / 0.9937 GB, free: 488 kB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0001914/0.2978, allocations: 56 kB / 0.9938 GB, free: 432 kB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.3002, allocations: 0.9276 MB / 0.9947 GB, free: 15.49 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.3005, allocations: 266.8 kB / 0.9949 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.0004944/0.301, allocations: 356.9 kB / 0.9953 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.002365/0.3034, allocations: 2.069 MB / 0.9973 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3034, allocations: 4 kB / 0.9973 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.034e-06/0.3034, allocations: 0 / 0.9973 GB, free: 12.8 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.369e-05/0.3034, allocations: 0 / 0.9973 GB, free: 12.8 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003232/0.3067, allocations: 1.801 MB / 0.9991 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3067, allocations: 12.03 kB / 0.9991 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007458/0.3075, allocations: 241.8 kB / 0.9993 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/0.3098, allocations: 1.439 MB / 1.001 GB, free: 9.188 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.757e-05/0.3099, allocations: 78 kB / 1.001 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3101, allocations: 100 kB / 1.001 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.3121, allocations: 1.112 MB / 1.002 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.689e-05/0.3121, allocations: 0 / 1.002 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.695e-05/0.3122, allocations: 40 kB / 1.002 GB, free: 7.828 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.66e-05/0.3123, allocations: 31.95 kB / 1.002 GB, free: 7.797 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.3141, allocations: 0.9251 MB / 1.003 GB, free: 6.871 MB / 0.6511 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.006261/0.3204, allocations: 4.9 MB / 1.008 GB, free: 1.684 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.3219, allocations: 0.6434 MB / 1.008 GB, free: 1.031 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008066/0.3227, allocations: 362.3 kB / 1.009 GB, free: 0.6758 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006681/0.3234, allocations: 0.8316 MB / 1.01 GB, free: 15.66 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3235, allocations: 35.12 kB / 1.01 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=61): time 2.445e-06/0.3235, allocations: 4 kB / 1.01 GB, free: 15.61 MB / 0.6667 GB Notification: Performance of matching and sorting (n=61): time 0.00857/0.332, allocations: 1.888 MB / 1.011 GB, free: 13.69 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.3321, allocations: 55.97 kB / 1.011 GB, free: 13.62 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001815/0.334, allocations: 1.202 MB / 1.013 GB, free: 12.41 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.3341, allocations: 37.7 kB / 1.013 GB, free: 12.36 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006488/0.3348, allocations: 0.6065 MB / 1.013 GB, free: 11.75 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002518/0.3351, allocations: 216.9 kB / 1.013 GB, free: 11.54 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.3351, allocations: 16 kB / 1.013 GB, free: 11.52 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.3352, allocations: 334 kB / 1.014 GB, free: 11.19 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007216/0.336, allocations: 293.8 kB / 1.014 GB, free: 10.9 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009246/0.3369, allocations: 0.5085 MB / 1.015 GB, free: 10.31 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007899/0.3377, allocations: 363 kB / 1.015 GB, free: 9.957 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3377, allocations: 0 / 1.015 GB, free: 9.957 MB / 0.6667 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.005096/0.3428, allocations: 1.398 MB / 1.016 GB, free: 8.547 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.00015/0.343, allocations: 206.2 kB / 1.016 GB, free: 8.293 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.3431, allocations: 4 kB / 1.016 GB, free: 8.289 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007129/0.3438, allocations: 148.8 kB / 1.017 GB, free: 8.141 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007002/0.3445, allocations: 167.8 kB / 1.017 GB, free: 7.977 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009697/0.3455, allocations: 0.7162 MB / 1.017 GB, free: 7.234 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.347, allocations: 171.1 kB / 1.018 GB, free: 7.066 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.788e-05/0.3471, allocations: 31.98 kB / 1.018 GB, free: 7.035 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.3471, allocations: 4 kB / 1.018 GB, free: 7.031 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004586/0.3517, allocations: 1.245 MB / 1.019 GB, free: 5.781 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.3518, allocations: 8.328 kB / 1.019 GB, free: 5.773 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.3523, allocations: 148.7 kB / 1.019 GB, free: 5.625 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006249/0.353, allocations: 171.7 kB / 1.019 GB, free: 5.457 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008892/0.3539, allocations: 0.7123 MB / 1.02 GB, free: 4.719 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.3552, allocations: 165 kB / 1.02 GB, free: 4.559 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-05/0.3553, allocations: 35.98 kB / 1.02 GB, free: 4.523 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007599/0.3561, allocations: 424.8 kB / 1.02 GB, free: 4.098 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002601/0.3563, allocations: 134.4 kB / 1.021 GB, free: 3.965 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004777/0.3611, allocations: 1.396 MB / 1.022 GB, free: 2.559 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.3612, allocations: 4 kB / 1.022 GB, free: 2.555 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/0.3612, allocations: 3.984 kB / 1.022 GB, free: 2.551 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004279/0.3655, allocations: 1.236 MB / 1.023 GB, free: 1.277 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007137/0.3726, allocations: 2.72 MB / 1.026 GB, free: 14.45 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.699e-06/0.3727, allocations: 32 / 1.026 GB, free: 14.45 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005238/0.3732, allocations: 127.8 kB / 1.026 GB, free: 14.32 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004983/0.3737, allocations: 144.6 kB / 1.026 GB, free: 14.18 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.801e-05/0.3738, allocations: 20 kB / 1.026 GB, free: 14.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/0.3787, allocations: 2.485 MB / 1.029 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.3788, allocations: 4 kB / 1.029 GB, free: 11.51 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005645/0.3844, allocations: 1.844 MB / 1.03 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000787/0.3852, allocations: 335 kB / 1.031 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.3854, allocations: 16 kB / 1.031 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009198/0.3863, allocations: 95.88 kB / 1.031 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/0.3865, allocations: 64.25 kB / 1.031 GB, free: 9.086 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.63e-05/0.3866, allocations: 27.98 kB / 1.031 GB, free: 9.059 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.001274/0.3878, allocations: 0.8543 MB / 1.032 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3879, allocations: 0 / 1.032 GB, free: 8.203 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001984/0.3898, allocations: 0.7096 MB / 1.032 GB, free: 7.492 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U) * 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 (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008496/0.3907, allocations: 424.5 kB / 1.033 GB, free: 7.078 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.002722/0.3934, allocations: 1.16 MB / 1.034 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.3935, allocations: 0 / 1.034 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.001575/0.395, allocations: 0.5956 MB / 1.035 GB, free: 5.312 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00385/0.3989, allocations: 0.762 MB / 1.035 GB, free: 4.559 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004205/0.4031, allocations: 2.803 MB / 1.038 GB, free: 1.676 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007466/0.4039, allocations: 1.168 MB / 1.039 GB, free: 492 kB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003302/0.4042, allocations: 107.4 kB / 1.039 GB, free: 384 kB / 0.6823 GB Notification: Performance of SimCode: time 8.01e-07/0.4042, allocations: 4 kB / 1.039 GB, free: 380 kB / 0.6823 GB Notification: Performance of Templates: time 0.3961/0.8004, allocations: 30.69 MB / 1.069 GB, free: 143.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)