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.00122/0.00122, allocations: 104.4 kB / 15.98 MB, free: 6.344 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.00127/0.00127, allocations: 195.5 kB / 16.91 MB, free: 6.184 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.255/1.255, allocations: 222.9 MB / 240.6 MB, free: 15.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00205/0.00205, allocations: 295.3 kB / 291 MB, free: 14.73 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8978/0.8978, allocations: 169.2 MB / 0.4985 GB, free: 4.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001616, allocations: 94.03 kB / 0.5953 GB, free: 15.57 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1692, allocations: 86.97 MB / 0.6803 GB, free: 8.621 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y): time 0.3507/0.5199, allocations: 74.53 MB / 0.753 GB, free: 80 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0203/0.5403, allocations: 15.03 MB / 0.7677 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00326/0.5436, allocations: 60.31 kB / 0.7678 GB, free: 3.805 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.5463, allocations: 0.7277 MB / 0.7685 GB, free: 3.195 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.007921/0.5543, allocations: 2.404 MB / 0.7708 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.003967/0.5583, allocations: 1.29 MB / 0.7721 GB, free: 340 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006411/0.5647, allocations: 4.423 MB / 0.7764 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002246/0.567, allocations: 1.438 MB / 0.7778 GB, free: 11.88 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00416/0.5712, allocations: 1.639 MB / 0.7794 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002194/0.5734, allocations: 1.264 MB / 0.7807 GB, free: 8.977 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003543/0.5738, allocations: 160 kB / 0.7808 GB, free: 8.82 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.5771, allocations: 1.415 MB / 0.7822 GB, free: 7.402 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004459/0.5775, allocations: 402.6 kB / 0.7826 GB, free: 7.008 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.5788, allocations: 0.9099 MB / 0.7835 GB, free: 6.094 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003137/0.582, allocations: 2.245 MB / 0.7857 GB, free: 3.844 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.582, allocations: 0 / 0.7857 GB, free: 3.844 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.647e-06/0.582, allocations: 0 / 0.7857 GB, free: 3.844 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.575e-05/0.582, allocations: 3.938 kB / 0.7857 GB, free: 3.84 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.003769/0.5858, allocations: 2.087 MB / 0.7877 GB, free: 1.688 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.5859, allocations: 8.031 kB / 0.7877 GB, free: 1.68 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000837/0.5867, allocations: 230.8 kB / 0.7879 GB, free: 1.453 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/0.5891, allocations: 1.486 MB / 0.7894 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/0.5891, allocations: 78 kB / 0.7895 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.5893, allocations: 107.9 kB / 0.7896 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.5912, allocations: 1.092 MB / 0.7906 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.5913, allocations: 11.94 kB / 0.7906 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.75e-05/0.5914, allocations: 36 kB / 0.7907 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.8e-05/0.5914, allocations: 35.92 kB / 0.7907 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001757/0.5932, allocations: 0.8861 MB / 0.7916 GB, free: 13.63 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.005819/0.599, allocations: 4.911 MB / 0.7964 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.6004, allocations: 0.608 MB / 0.797 GB, free: 7.812 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006494/0.601, allocations: 356.8 kB / 0.7973 GB, free: 7.465 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005855/0.6016, allocations: 0.8316 MB / 0.7981 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.6017, allocations: 47.12 kB / 0.7982 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=61): time 3.015e-06/0.6017, allocations: 0 / 0.7982 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of matching and sorting (n=61): time 0.007037/0.6087, allocations: 1.689 MB / 0.7998 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.6088, allocations: 59.97 kB / 0.7999 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001641/0.6105, allocations: 1.21 MB / 0.8011 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000131/0.6106, allocations: 41.7 kB / 0.8011 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004529/0.6111, allocations: 0.6026 MB / 0.8017 GB, free: 2.727 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.6113, allocations: 216.9 kB / 0.8019 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002246/0.6115, allocations: 158.5 kB / 0.802 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6116, allocations: 334 kB / 0.8024 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006169/0.6122, allocations: 288.7 kB / 0.8026 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007735/0.613, allocations: 0.492 MB / 0.8031 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.6143, allocations: 0.709 MB / 0.8038 GB, free: 424 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.6143, allocations: 3.938 kB / 0.8038 GB, free: 420 kB / 0.5606 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004556/0.6189, allocations: 1.273 MB / 0.8051 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.619, allocations: 11.94 kB / 0.8051 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.619, allocations: 4 kB / 0.8051 GB, free: 15.11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005866/0.6196, allocations: 133 kB / 0.8052 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006267/0.6202, allocations: 151.8 kB / 0.8053 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00081/0.621, allocations: 0.7122 MB / 0.806 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001258/0.6223, allocations: 159 kB / 0.8062 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-05/0.6224, allocations: 31.98 kB / 0.8062 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001025/0.6234, allocations: 0.5487 MB / 0.8068 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007536/0.6242, allocations: 0.4939 MB / 0.8072 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001254/0.6254, allocations: 0.7012 MB / 0.8079 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.096e-06/0.6255, allocations: 0 / 0.8079 GB, free: 12.03 MB / 0.5762 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004432/0.6299, allocations: 1.273 MB / 0.8092 GB, free: 10.74 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.6299, allocations: 8 kB / 0.8092 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.6299, allocations: 4 kB / 0.8092 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004797/0.6304, allocations: 133 kB / 0.8093 GB, free: 10.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005688/0.631, allocations: 155.8 kB / 0.8094 GB, free: 10.45 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007336/0.6317, allocations: 0.7083 MB / 0.8101 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.633, allocations: 135.5 kB / 0.8103 GB, free: 9.578 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/0.633, allocations: 35.98 kB / 0.8103 GB, free: 9.543 MB / 0.5762 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.000242/0.6333, allocations: 224.1 kB / 0.8105 GB, free: 9.316 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.6335, allocations: 134.3 kB / 0.8106 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/0.6379, allocations: 1.275 MB / 0.8119 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.6379, allocations: 4 kB / 0.8119 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6379, allocations: 0 / 0.8119 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003884/0.6418, allocations: 1.107 MB / 0.813 GB, free: 6.75 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.648, allocations: 2.602 MB / 0.8155 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.565e-06/0.6481, allocations: 0 / 0.8155 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004664/0.6485, allocations: 115.8 kB / 0.8156 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004469/0.649, allocations: 129 kB / 0.8158 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.6491, allocations: 27.98 kB / 0.8158 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004645/0.6537, allocations: 2.639 MB / 0.8184 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.6537, allocations: 8 kB / 0.8184 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005087/0.6588, allocations: 1.699 MB / 0.82 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000654/0.6595, allocations: 307.1 kB / 0.8203 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.6597, allocations: 20 kB / 0.8203 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008326/0.6606, allocations: 79.91 kB / 0.8204 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.6607, allocations: 60.25 kB / 0.8205 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-05/0.6608, allocations: 31.97 kB / 0.8205 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001094/0.6619, allocations: 0.8701 MB / 0.8213 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6619, allocations: 0 / 0.8213 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001841/0.6637, allocations: 0.7057 MB / 0.822 GB, free: 13.11 MB / 0.5919 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.0008914/0.6646, allocations: 459.3 kB / 0.8225 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002657/0.6673, allocations: 1.153 MB / 0.8236 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.6673, allocations: 0 / 0.8236 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.6687, allocations: 0.5604 MB / 0.8241 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003393/0.6721, allocations: 0.804 MB / 0.8249 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003777/0.6759, allocations: 2.797 MB / 0.8277 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006653/0.6766, allocations: 1.164 MB / 0.8288 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000336/0.677, allocations: 115.4 kB / 0.8289 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of SimCode: time 5.72e-07/0.677, allocations: 0 / 0.8289 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of Templates: time 0.03697/0.7139, allocations: 30.95 MB / 0.8591 GB, free: 7.246 MB / 0.6231 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)