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.001119/0.001119, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001024/0.001024, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002091/0.002091, allocations: 285.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9753/0.9753, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 91.86 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4373/0.4391, allocations: 86.97 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y): time 0.07466/0.5138, allocations: 75.18 MB / 0.8405 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.02098/0.5349, allocations: 15.15 MB / 0.8552 GB, free: 9.281 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002879/0.5378, allocations: 67.62 kB / 0.8553 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.5406, allocations: 0.8306 MB / 0.8561 GB, free: 8.379 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.00773/0.5484, allocations: 2.591 MB / 0.8587 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003723/0.5521, allocations: 1.389 MB / 0.86 GB, free: 4.398 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.006315/0.5584, allocations: 4.398 MB / 0.8643 GB, free: 15.99 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002529/0.561, allocations: 1.46 MB / 0.8657 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00519/0.5662, allocations: 1.664 MB / 0.8674 GB, free: 12.83 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002474/0.5687, allocations: 1.214 MB / 0.8685 GB, free: 11.61 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0004559/0.5692, allocations: 160 kB / 0.8687 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003359/0.5725, allocations: 1.408 MB / 0.8701 GB, free: 10.05 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005236/0.5731, allocations: 398.6 kB / 0.8704 GB, free: 9.656 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001452/0.5745, allocations: 0.9021 MB / 0.8713 GB, free: 8.75 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.00504/0.5796, allocations: 2.881 MB / 0.8741 GB, free: 5.863 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.5796, allocations: 0 / 0.8741 GB, free: 5.863 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5796, allocations: 0 / 0.8741 GB, free: 5.863 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 6.943e-05/0.5797, allocations: 0 / 0.8741 GB, free: 5.863 MB / 0.6387 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.004888/0.5846, allocations: 2.087 MB / 0.8762 GB, free: 3.707 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.5846, allocations: 8.031 kB / 0.8762 GB, free: 3.699 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008703/0.5855, allocations: 230.8 kB / 0.8764 GB, free: 3.473 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002502/0.588, allocations: 1.517 MB / 0.8779 GB, free: 1.902 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.273e-05/0.5881, allocations: 78 kB / 0.878 GB, free: 1.824 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.5883, allocations: 104 kB / 0.8781 GB, free: 1.723 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.5902, allocations: 1.104 MB / 0.8791 GB, free: 0.5859 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.5903, allocations: 0 / 0.8791 GB, free: 0.5859 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.604e-05/0.5904, allocations: 44 kB / 0.8792 GB, free: 0.543 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.809e-05/0.5904, allocations: 31.94 kB / 0.8792 GB, free: 0.5117 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.5923, allocations: 0.8939 MB / 0.8801 GB, free: 15.61 MB / 0.6544 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.005773/0.5981, allocations: 4.903 MB / 0.8849 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.5995, allocations: 0.6158 MB / 0.8855 GB, free: 9.801 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.6003, allocations: 346.8 kB / 0.8858 GB, free: 9.461 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005802/0.6008, allocations: 0.8277 MB / 0.8866 GB, free: 8.449 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.6009, allocations: 39.12 kB / 0.8867 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=61): time 2.695e-06/0.6009, allocations: 0 / 0.8867 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of matching and sorting (n=61): time 0.007357/0.6083, allocations: 1.693 MB / 0.8883 GB, free: 6.68 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.6083, allocations: 59.97 kB / 0.8884 GB, free: 6.609 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/0.61, allocations: 1.23 MB / 0.8896 GB, free: 5.363 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.436e-05/0.6101, allocations: 41.7 kB / 0.8896 GB, free: 5.316 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004863/0.6106, allocations: 0.6026 MB / 0.8902 GB, free: 4.707 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/0.6108, allocations: 216.9 kB / 0.8904 GB, free: 4.492 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002321/0.611, allocations: 158.4 kB / 0.8906 GB, free: 4.332 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.6112, allocations: 334 kB / 0.8909 GB, free: 4 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006647/0.6118, allocations: 292.6 kB / 0.8911 GB, free: 3.711 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008175/0.6126, allocations: 0.4991 MB / 0.8916 GB, free: 3.141 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.614, allocations: 0.7127 MB / 0.8923 GB, free: 2.379 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.6141, allocations: 4 kB / 0.8923 GB, free: 2.375 MB / 0.6544 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004894/0.619, allocations: 1.269 MB / 0.8936 GB, free: 1.094 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.619, allocations: 8.062 kB / 0.8936 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.619, allocations: 4 kB / 0.8936 GB, free: 1.082 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/0.6196, allocations: 136.7 kB / 0.8937 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000615/0.6203, allocations: 155.8 kB / 0.8939 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000857/0.6211, allocations: 0.7083 MB / 0.8946 GB, free: 60 kB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.6222, allocations: 115 kB / 0.8947 GB, free: 15.95 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.849e-05/0.6223, allocations: 40.05 kB / 0.8947 GB, free: 15.91 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001174/0.6235, allocations: 0.5488 MB / 0.8952 GB, free: 15.36 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008067/0.6243, allocations: 496.7 kB / 0.8957 GB, free: 14.79 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001345/0.6257, allocations: 0.709 MB / 0.8964 GB, free: 14.04 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.026e-06/0.6257, allocations: 0 / 0.8964 GB, free: 14.04 MB / 0.67 GB Notification: Performance of matching and sorting (n=88) (initialization_lambda0): time 0.004714/0.6304, allocations: 1.269 MB / 0.8976 GB, free: 12.75 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.6304, allocations: 4 kB / 0.8976 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.6304, allocations: 4.375 kB / 0.8977 GB, free: 12.75 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004854/0.6309, allocations: 140.7 kB / 0.8978 GB, free: 12.61 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005871/0.6315, allocations: 159.7 kB / 0.8979 GB, free: 12.45 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007766/0.6323, allocations: 0.7047 MB / 0.8986 GB, free: 11.72 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.6334, allocations: 99.36 kB / 0.8987 GB, free: 11.62 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/0.6335, allocations: 31.98 kB / 0.8988 GB, free: 11.59 MB / 0.67 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.0002508/0.6337, allocations: 228.1 kB / 0.899 GB, free: 11.36 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.634, allocations: 130.4 kB / 0.8991 GB, free: 11.23 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004766/0.6387, allocations: 1.267 MB / 0.9003 GB, free: 9.945 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.6388, allocations: 12 kB / 0.9003 GB, free: 9.934 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.6388, allocations: 4 kB / 0.9003 GB, free: 9.93 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004335/0.6431, allocations: 1.107 MB / 0.9014 GB, free: 8.793 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006896/0.65, allocations: 2.621 MB / 0.904 GB, free: 6.055 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.6501, allocations: 4 kB / 0.904 GB, free: 6.051 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.6505, allocations: 107.9 kB / 0.9041 GB, free: 5.945 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004897/0.6511, allocations: 133.2 kB / 0.9042 GB, free: 5.812 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.715e-05/0.6511, allocations: 16 kB / 0.9042 GB, free: 5.797 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005125/0.6562, allocations: 2.637 MB / 0.9068 GB, free: 3.008 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.6563, allocations: 4 kB / 0.9068 GB, free: 3.004 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005452/0.6617, allocations: 1.695 MB / 0.9085 GB, free: 1.234 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006313/0.6624, allocations: 307.1 kB / 0.9088 GB, free: 0.9141 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002816/0.6627, allocations: 24.06 kB / 0.9088 GB, free: 0.8906 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009153/0.6636, allocations: 51.92 kB / 0.9088 GB, free: 0.8398 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.6637, allocations: 64.25 kB / 0.9089 GB, free: 0.7773 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.6638, allocations: 31.97 kB / 0.9089 GB, free: 0.7461 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0014/0.6652, allocations: 0.8779 MB / 0.9098 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of sort global known variables: time 3.91e-07/0.6652, allocations: 0 / 0.9098 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.00209/0.6673, allocations: 0.7213 MB / 0.9105 GB, free: 15.14 MB / 0.6856 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.001022/0.6684, allocations: 460.2 kB / 0.9109 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002871/0.6712, allocations: 1.125 MB / 0.912 GB, free: 13.57 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.6713, allocations: 0 / 0.912 GB, free: 13.57 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.6729, allocations: 0.5565 MB / 0.9126 GB, free: 13.01 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00396/0.6769, allocations: 0.8067 MB / 0.9134 GB, free: 12.22 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004591/0.6815, allocations: 2.305 MB / 0.9156 GB, free: 9.836 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.6825, allocations: 1.164 MB / 0.9167 GB, free: 8.645 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003707/0.6829, allocations: 115.3 kB / 0.9169 GB, free: 8.531 MB / 0.6856 GB Notification: Performance of SimCode: time 1.002e-06/0.6829, allocations: 0 / 0.9169 GB, free: 8.531 MB / 0.6856 GB Notification: Performance of Templates: time 0.04358/0.7265, allocations: 31.32 MB / 0.9474 GB, free: 9.418 MB / 0.7169 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)