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: "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_y",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008751/0.0008751, allocations: 98.03 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.004889/0.00489, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.214/1.214, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001745/0.001745, allocations: 274.2 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8887/0.8887, allocations: 169.5 MB / 0.5004 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.0003608, allocations: 14.38 kB / 0.5988 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1286, allocations: 88.55 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y): time 0.05915/0.1878, allocations: 73.43 MB / 0.7569 GB, free: 5.316 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.2795/0.4673, allocations: 15.03 MB / 0.7716 GB, free: 29.95 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00196/0.4693, allocations: 62.81 kB / 0.7717 GB, free: 29.94 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001712/0.471, allocations: 0.6785 MB / 0.7723 GB, free: 29.93 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005139/0.4762, allocations: 2.384 MB / 0.7747 GB, free: 29.84 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002723/0.4789, allocations: 1.265 MB / 0.7759 GB, free: 29.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005547/0.4845, allocations: 5.57 MB / 0.7813 GB, free: 29.54 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.486, allocations: 1.154 MB / 0.7825 GB, free: 29.37 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002177/0.4882, allocations: 1.319 MB / 0.7837 GB, free: 29.18 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001231/0.4894, allocations: 1.156 MB / 0.7849 GB, free: 28.97 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001287/0.4896, allocations: 53.62 kB / 0.7849 GB, free: 28.97 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.4921, allocations: 1.239 MB / 0.7861 GB, free: 28.86 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.4924, allocations: 292.9 kB / 0.7864 GB, free: 28.79 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006586/0.493, allocations: 0.7967 MB / 0.7872 GB, free: 28.5 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002543/0.4956, allocations: 2.725 MB / 0.7899 GB, free: 28.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.4956, allocations: 0 / 0.7899 GB, free: 28.14 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4956, allocations: 1.094 kB / 0.7899 GB, free: 28.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.642e-05/0.4956, allocations: 0 / 0.7899 GB, free: 28.14 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.00267/0.4983, allocations: 1.782 MB / 0.7916 GB, free: 27.11 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.4984, allocations: 9.094 kB / 0.7916 GB, free: 27.11 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.4985, allocations: 150.4 kB / 0.7918 GB, free: 27.07 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007169/0.4992, allocations: 241.4 kB / 0.792 GB, free: 26.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002117/0.5014, allocations: 1.491 MB / 0.7934 GB, free: 26.54 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.051e-05/0.5015, allocations: 86.67 kB / 0.7935 GB, free: 26.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001858/0.5017, allocations: 97.88 kB / 0.7936 GB, free: 26.54 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/0.5035, allocations: 1.118 MB / 0.7947 GB, free: 26.31 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.5036, allocations: 0 / 0.7947 GB, free: 26.31 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.283e-05/0.5036, allocations: 50.34 kB / 0.7948 GB, free: 26.27 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.327e-05/0.5037, allocations: 27.02 kB / 0.7948 GB, free: 26.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.5055, allocations: 0.9299 MB / 0.7957 GB, free: 25.96 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.004361/0.5098, allocations: 4.92 MB / 0.8005 GB, free: 22.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.5111, allocations: 0.6445 MB / 0.8011 GB, free: 21.89 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006534/0.5118, allocations: 365.1 kB / 0.8015 GB, free: 21.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003768/0.5122, allocations: 0.8269 MB / 0.8023 GB, free: 20.76 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.5122, allocations: 38.56 kB / 0.8023 GB, free: 20.71 MB / 0.545 GB Notification: Performance of pre-optimization done (n=61): time 1.703e-06/0.5122, allocations: 7.938 kB / 0.8023 GB, free: 20.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=61): time 0.006627/0.5189, allocations: 1.897 MB / 0.8042 GB, free: 19.8 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.947e-05/0.5189, allocations: 57.47 kB / 0.8042 GB, free: 19.74 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001304/0.5202, allocations: 1.214 MB / 0.8054 GB, free: 19.06 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.5203, allocations: 39.58 kB / 0.8055 GB, free: 19.02 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/0.5206, allocations: 0.6142 MB / 0.8061 GB, free: 18.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.5207, allocations: 208.2 kB / 0.8063 GB, free: 18.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.252e-05/0.5208, allocations: 63.67 kB / 0.8063 GB, free: 18.26 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.737e-05/0.5209, allocations: 331.5 kB / 0.8066 GB, free: 17.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005986/0.5215, allocations: 302.5 kB / 0.8069 GB, free: 17.8 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/0.5222, allocations: 0.5073 MB / 0.8074 GB, free: 17.41 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.5234, allocations: 0.7562 MB / 0.8081 GB, free: 16.96 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.5235, allocations: 0.9688 kB / 0.8082 GB, free: 16.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.004205/0.5277, allocations: 1.408 MB / 0.8095 GB, free: 16.31 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.071e-05/0.5277, allocations: 200.3 kB / 0.8097 GB, free: 16.08 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.5278, allocations: 10.56 kB / 0.8097 GB, free: 16.07 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004928/0.5283, allocations: 137.2 kB / 0.8099 GB, free: 16.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.5288, allocations: 172.7 kB / 0.81 GB, free: 15.97 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006238/0.5294, allocations: 0.7234 MB / 0.8107 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/0.5305, allocations: 169 kB / 0.8109 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.5306, allocations: 35.22 kB / 0.8109 GB, free: 15.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.22e-06/0.5306, allocations: 2.812 kB / 0.8109 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004131/0.5347, allocations: 1.253 MB / 0.8121 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.5347, allocations: 4.344 kB / 0.8122 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004212/0.5352, allocations: 143.4 kB / 0.8123 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005141/0.5357, allocations: 167.9 kB / 0.8125 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000601/0.5363, allocations: 0.7245 MB / 0.8132 GB, free: 13.95 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009772/0.5373, allocations: 154.5 kB / 0.8133 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.5373, allocations: 34.7 kB / 0.8133 GB, free: 13.85 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.00054/0.5379, allocations: 422.2 kB / 0.8137 GB, free: 13.52 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.538, allocations: 137.6 kB / 0.8139 GB, free: 13.45 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00432/0.5424, allocations: 1.403 MB / 0.8152 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.5424, allocations: 6.312 kB / 0.8152 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5424, allocations: 2.688 kB / 0.8153 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003855/0.5463, allocations: 1.239 MB / 0.8165 GB, free: 12.08 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00574/0.552, allocations: 2.745 MB / 0.8191 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.552, allocations: 3.312 kB / 0.8191 GB, free: 10.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004175/0.5525, allocations: 122 kB / 0.8193 GB, free: 10.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004096/0.5529, allocations: 137.4 kB / 0.8194 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.5529, allocations: 24.86 kB / 0.8194 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004024/0.557, allocations: 2.472 MB / 0.8218 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.557, allocations: 6.594 kB / 0.8218 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00457/0.5615, allocations: 1.846 MB / 0.8236 GB, free: 7.129 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/0.562, allocations: 333.2 kB / 0.824 GB, free: 6.84 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.5621, allocations: 22.66 kB / 0.824 GB, free: 6.824 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008184/0.563, allocations: 102.7 kB / 0.8241 GB, free: 6.773 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.717e-05/0.5631, allocations: 57.47 kB / 0.8241 GB, free: 6.738 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.5631, allocations: 33.42 kB / 0.8242 GB, free: 6.727 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0009237/0.5641, allocations: 0.8723 MB / 0.825 GB, free: 6.238 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5641, allocations: 0 / 0.825 GB, free: 6.238 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001529/0.5656, allocations: 0.7056 MB / 0.8257 GB, free: 6.098 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.00534/0.5709, allocations: 2.752 MB / 0.8284 GB, free: 3.41 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002096/0.573, allocations: 1.168 MB / 0.8295 GB, free: 2.246 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5731, allocations: 4 kB / 0.8295 GB, free: 2.242 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001238/0.5743, allocations: 0.5956 MB / 0.8301 GB, free: 1.637 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/0.578, allocations: 0.7857 MB / 0.8309 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/0.6012, allocations: 11.2 MB / 0.8418 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/0.6019, allocations: 1.183 MB / 0.843 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001295/0.6032, allocations: 303 kB / 0.8433 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006503/0.6038, allocations: 0.5227 MB / 0.8438 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of SimCode: time 7.02e-07/0.6038, allocations: 0 / 0.8438 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7961/1.4, allocations: 42.49 MB / 0.8853 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/1.4, allocations: 277.1 kB / 0.8855 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.062/4.463, allocations: 0 / 0.8855 GB, free: 9.039 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_y_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatPumps_Examples_Carnot_y.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.Examples.Carnot_y.pipe 2>&1)