Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.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.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y") translateModel(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009595/0.0009595, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007482/0.007482, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.412/1.412, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001685/0.001685, allocations: 266.9 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9261/0.9261, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004398/0.0004398, allocations: 14.33 kB / 0.5986 GB, free: 28.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1747, allocations: 88.54 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y): time 0.06774/0.2424, allocations: 73.43 MB / 0.7568 GB, free: 5.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.3176/0.5601, allocations: 15.02 MB / 0.7715 GB, free: 29.92 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003131/0.5633, allocations: 57.69 kB / 0.7715 GB, free: 29.92 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002305/0.5656, allocations: 0.6733 MB / 0.7722 GB, free: 29.91 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008437/0.574, allocations: 2.387 MB / 0.7745 GB, free: 29.81 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004074/0.5781, allocations: 1.265 MB / 0.7758 GB, free: 29.79 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.00898/0.5871, allocations: 5.576 MB / 0.7812 GB, free: 29.52 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.589, allocations: 1.157 MB / 0.7823 GB, free: 29.35 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002735/0.5917, allocations: 1.33 MB / 0.7836 GB, free: 29.16 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.5932, allocations: 1.15 MB / 0.7848 GB, free: 28.96 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.5934, allocations: 59.12 kB / 0.7848 GB, free: 28.95 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00268/0.5961, allocations: 1.237 MB / 0.786 GB, free: 28.84 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002689/0.5964, allocations: 281.6 kB / 0.7863 GB, free: 28.77 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007672/0.5972, allocations: 0.7986 MB / 0.7871 GB, free: 28.48 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003109/0.6003, allocations: 2.716 MB / 0.7897 GB, free: 28.12 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.6003, allocations: 3.375 kB / 0.7897 GB, free: 28.12 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.463e-06/0.6003, allocations: 3.938 kB / 0.7897 GB, free: 28.12 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.594e-05/0.6003, allocations: 0 / 0.7897 GB, free: 28.12 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.003467/0.6038, allocations: 1.787 MB / 0.7915 GB, free: 27.09 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.6039, allocations: 11.67 kB / 0.7915 GB, free: 27.09 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001066/0.6049, allocations: 242.6 kB / 0.7917 GB, free: 27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/0.6077, allocations: 1.487 MB / 0.7932 GB, free: 26.56 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.164e-05/0.6078, allocations: 76.72 kB / 0.7933 GB, free: 26.56 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.608, allocations: 100.2 kB / 0.7934 GB, free: 26.56 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/0.6101, allocations: 1.122 MB / 0.7944 GB, free: 26.42 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/0.6101, allocations: 1.25 kB / 0.7944 GB, free: 26.42 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.6102, allocations: 43.92 kB / 0.7945 GB, free: 26.39 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.539e-05/0.6102, allocations: 25.31 kB / 0.7945 GB, free: 26.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001879/0.6121, allocations: 0.9336 MB / 0.7954 GB, free: 26.08 MB / 0.545 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.005/0.6171, allocations: 4.923 MB / 0.8002 GB, free: 22.31 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.6186, allocations: 0.6449 MB / 0.8009 GB, free: 22.01 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007313/0.6193, allocations: 371.6 kB / 0.8012 GB, free: 21.84 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004324/0.6197, allocations: 0.8275 MB / 0.802 GB, free: 20.87 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.6198, allocations: 42.39 kB / 0.8021 GB, free: 20.82 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 2.335e-06/0.6198, allocations: 1.031 kB / 0.8021 GB, free: 20.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.007427/0.6272, allocations: 1.903 MB / 0.8039 GB, free: 19.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.6273, allocations: 65.39 kB / 0.804 GB, free: 19.84 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.6288, allocations: 1.209 MB / 0.8052 GB, free: 19.17 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.756e-05/0.6289, allocations: 43.98 kB / 0.8052 GB, free: 19.12 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004087/0.6293, allocations: 0.6001 MB / 0.8058 GB, free: 18.59 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.6294, allocations: 214.8 kB / 0.806 GB, free: 18.41 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.6295, allocations: 62.34 kB / 0.8061 GB, free: 18.37 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.714e-05/0.6296, allocations: 332.7 kB / 0.8064 GB, free: 18.04 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006586/0.6302, allocations: 306.4 kB / 0.8067 GB, free: 17.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007617/0.631, allocations: 0.5124 MB / 0.8072 GB, free: 17.52 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001329/0.6324, allocations: 0.744 MB / 0.8079 GB, free: 17.07 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.6324, allocations: 6.219 kB / 0.8079 GB, free: 17.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004664/0.637, allocations: 1.407 MB / 0.8093 GB, free: 16.42 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.834e-05/0.6371, allocations: 200 kB / 0.8095 GB, free: 16.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.6372, allocations: 7.375 kB / 0.8095 GB, free: 16.19 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005703/0.6377, allocations: 147.6 kB / 0.8096 GB, free: 16.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005844/0.6383, allocations: 164.6 kB / 0.8098 GB, free: 16.09 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007034/0.639, allocations: 0.721 MB / 0.8105 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.6403, allocations: 174.7 kB / 0.8106 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.126e-05/0.6404, allocations: 33.52 kB / 0.8107 GB, free: 15.35 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.673e-06/0.6404, allocations: 3.312 kB / 0.8107 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004435/0.6448, allocations: 1.252 MB / 0.8119 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.6448, allocations: 7.938 kB / 0.8119 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000498/0.6453, allocations: 145.1 kB / 0.812 GB, free: 14.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005828/0.6459, allocations: 172.2 kB / 0.8122 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006746/0.6466, allocations: 0.7127 MB / 0.8129 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.6479, allocations: 162.8 kB / 0.8131 GB, free: 13.97 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.235e-05/0.648, allocations: 35.55 kB / 0.8131 GB, free: 13.96 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0006878/0.6487, allocations: 417.2 kB / 0.8135 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.6489, allocations: 139.7 kB / 0.8136 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004586/0.6535, allocations: 1.398 MB / 0.815 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.6535, allocations: 6.875 kB / 0.815 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6535, allocations: 0 / 0.815 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004148/0.6577, allocations: 1.239 MB / 0.8162 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006388/0.6641, allocations: 2.738 MB / 0.8189 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.6641, allocations: 7.281 kB / 0.8189 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/0.6646, allocations: 121.6 kB / 0.819 GB, free: 10.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004827/0.665, allocations: 137.9 kB / 0.8191 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.6651, allocations: 22.61 kB / 0.8192 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004384/0.6695, allocations: 2.493 MB / 0.8216 GB, free: 8.258 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.6695, allocations: 7.328 kB / 0.8216 GB, free: 8.254 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00527/0.6748, allocations: 1.847 MB / 0.8234 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006729/0.6755, allocations: 335.1 kB / 0.8237 GB, free: 6.938 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.6756, allocations: 21.91 kB / 0.8237 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009009/0.6765, allocations: 94.31 kB / 0.8238 GB, free: 6.879 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.6767, allocations: 54.38 kB / 0.8239 GB, free: 6.848 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.635e-05/0.6767, allocations: 35.75 kB / 0.8239 GB, free: 6.832 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001046/0.6778, allocations: 0.8721 MB / 0.8248 GB, free: 6.344 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6778, allocations: 0 / 0.8248 GB, free: 6.344 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00173/0.6795, allocations: 0.7069 MB / 0.8255 GB, free: 6.203 MB / 0.545 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007872/0.6803, allocations: 447.5 kB / 0.8259 GB, free: 5.953 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002285/0.6826, allocations: 1.168 MB / 0.827 GB, free: 4.797 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.6826, allocations: 0 / 0.827 GB, free: 4.797 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.684, allocations: 0.5995 MB / 0.8276 GB, free: 4.184 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003995/0.688, allocations: 0.8007 MB / 0.8284 GB, free: 3.395 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.6914, allocations: 2.82 MB / 0.8312 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006627/0.6921, allocations: 1.183 MB / 0.8323 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001219/0.6933, allocations: 299 kB / 0.8326 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002898/0.6936, allocations: 115.4 kB / 0.8327 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of SimCode: time 9.62e-07/0.6936, allocations: 3.938 kB / 0.8327 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of Templates: time 0.05222/0.7459, allocations: 31.94 MB / 0.8639 GB, free: 15.48 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)