Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") translateModel(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008572/0.0008573, allocations: 100.8 kB / 15.06 MB, free: 1.094 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.0009639/0.0009639, allocations: 177.3 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.572/1.572, allocations: 292.5 MB / 0.5497 GB, free: 14.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004491/0.0004491, allocations: 18.69 kB / 0.6735 GB, free: 26.28 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1993/0.1997, allocations: 116.3 MB / 0.7871 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop): time 0.0663/0.2661, allocations: 75.32 MB / 0.8607 GB, free: 492 kB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.02894/0.2951, allocations: 21.84 MB / 0.882 GB, free: 10.6 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003932/0.299, allocations: 91.38 kB / 0.8821 GB, free: 10.51 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.005085/0.3042, allocations: 1.438 MB / 0.8835 GB, free: 9.062 MB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.3157, allocations: 3.568 MB / 0.887 GB, free: 5.488 MB / 0.7012 GB Notification: Performance of NFTyping.typeClassSections: time 0.01088/0.3266, allocations: 3.938 MB / 0.8908 GB, free: 1.609 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.007855/0.3345, allocations: 4.118 MB / 0.8948 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002778/0.3373, allocations: 1.743 MB / 0.8965 GB, free: 11.7 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003888/0.3412, allocations: 1.962 MB / 0.8985 GB, free: 9.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.3433, allocations: 1.385 MB / 0.8998 GB, free: 8.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0003239/0.3437, allocations: 120 kB / 0.8999 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003979/0.3476, allocations: 1.724 MB / 0.9016 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0006042/0.3483, allocations: 0.5682 MB / 0.9022 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0007495/0.349, allocations: 0.59 MB / 0.9027 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004272/0.3533, allocations: 3.815 MB / 0.9065 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.3533, allocations: 0 / 0.9065 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.011e-06/0.3533, allocations: 0 / 0.9065 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.666e-05/0.3534, allocations: 0 / 0.9065 GB, free: 1.504 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 384 * Number of variables: 384 Notification: Performance of Generate backend data structure: time 0.3883/0.7416, allocations: 3.046 MB / 0.9094 GB, free: 35.42 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.7417, allocations: 9.188 kB / 0.9094 GB, free: 35.42 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003764/0.7455, allocations: 0.7237 MB / 0.9102 GB, free: 35.26 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005225/0.7507, allocations: 2.252 MB / 0.9124 GB, free: 34.77 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008339/0.7516, allocations: 340.9 kB / 0.9127 GB, free: 34.7 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004723/0.7521, allocations: 178 kB / 0.9128 GB, free: 34.7 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004043/0.7561, allocations: 1.993 MB / 0.9148 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/0.7562, allocations: 3.938 kB / 0.9148 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.7563, allocations: 66.16 kB / 0.9149 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.906e-05/0.7564, allocations: 41.83 kB / 0.9149 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003864/0.7603, allocations: 1.762 MB / 0.9166 GB, free: 34.36 MB / 0.7169 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.01368/0.774, allocations: 9.266 MB / 0.9257 GB, free: 30.12 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002215/0.7762, allocations: 1.135 MB / 0.9268 GB, free: 29.99 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006623/0.7828, allocations: 4.175 MB / 0.9309 GB, free: 28.04 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001683/0.7845, allocations: 0.7821 MB / 0.9316 GB, free: 27.98 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001021/0.7856, allocations: 202 kB / 0.9318 GB, free: 27.91 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=100): time 3.537e-06/0.7856, allocations: 2.625 kB / 0.9318 GB, free: 27.91 MB / 0.7169 GB Notification: Performance of matching and sorting (n=100): time 0.0047/0.7903, allocations: 1.91 MB / 0.9337 GB, free: 27.72 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.7904, allocations: 171.8 kB / 0.9338 GB, free: 27.53 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003529/0.7939, allocations: 2.31 MB / 0.9361 GB, free: 27.29 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002324/0.7942, allocations: 60.69 kB / 0.9362 GB, free: 27.26 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008351/0.795, allocations: 1.168 MB / 0.9373 GB, free: 26.92 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.7953, allocations: 336.3 kB / 0.9376 GB, free: 26.71 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.7954, allocations: 35.84 kB / 0.9377 GB, free: 26.71 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.007e-05/0.7955, allocations: 364.8 kB / 0.938 GB, free: 26.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001705/0.7972, allocations: 0.7408 MB / 0.9387 GB, free: 26.39 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.7991, allocations: 1.226 MB / 0.9399 GB, free: 25.8 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/0.8009, allocations: 0.9271 MB / 0.9408 GB, free: 25.64 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.8009, allocations: 4.219 kB / 0.9408 GB, free: 25.64 MB / 0.7169 GB Notification: Performance of matching and sorting (n=182) (initialization): time 0.004808/0.8058, allocations: 2.308 MB / 0.9431 GB, free: 25.32 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009374/0.8067, allocations: 5.199 MB / 0.9482 GB, free: 19.83 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.308e-05/0.8068, allocations: 15.81 kB / 0.9482 GB, free: 19.83 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.066e-05/0.8068, allocations: 24.42 kB / 0.9482 GB, free: 19.83 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.8083, allocations: 372.4 kB / 0.9486 GB, free: 19.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.843e-05/0.8083, allocations: 26.69 kB / 0.9486 GB, free: 19.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002924/0.8113, allocations: 364.2 kB / 0.9489 GB, free: 19.79 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001931/0.8115, allocations: 92.36 kB / 0.949 GB, free: 19.79 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.8115, allocations: 3.375 kB / 0.949 GB, free: 19.79 MB / 0.7169 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004303/0.8158, allocations: 2.108 MB / 0.9511 GB, free: 19.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-05/0.8159, allocations: 13.34 kB / 0.9511 GB, free: 19.62 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.8159, allocations: 24.81 kB / 0.9511 GB, free: 19.62 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.8173, allocations: 362.5 kB / 0.9515 GB, free: 19.62 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.254e-05/0.8173, allocations: 24.92 kB / 0.9515 GB, free: 19.62 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002789/0.8201, allocations: 356.5 kB / 0.9518 GB, free: 19.58 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/0.8204, allocations: 89.78 kB / 0.9519 GB, free: 19.58 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,reaToInt.y,$PRE.uMod.booPul.y,uMod.booPul.y,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.TSouEnt.booPul.y,TSouEnt.booPul.y,$PRE.TLoaSet.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 164 * Array equations: 2 * Algorithm blocks: 4 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001285/0.8216, allocations: 0.6358 MB / 0.9525 GB, free: 19.38 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006597/0.8223, allocations: 243.1 kB / 0.9528 GB, free: 19.26 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004136/0.8265, allocations: 1.802 MB / 0.9545 GB, free: 19.13 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.218e-05/0.8265, allocations: 10.19 kB / 0.9545 GB, free: 19.13 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.8265, allocations: 4.719 kB / 0.9545 GB, free: 19.13 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002592/0.8291, allocations: 1.333 MB / 0.9558 GB, free: 18.95 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008433/0.8376, allocations: 3.727 MB / 0.9595 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/0.8376, allocations: 3.25 kB / 0.9595 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.8387, allocations: 236 kB / 0.9597 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.212e-05/0.8388, allocations: 3.281 kB / 0.9597 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.416e-05/0.8389, allocations: 33.05 kB / 0.9597 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.174e-05/0.8389, allocations: 6.188 kB / 0.9597 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.8389, allocations: 6.031 kB / 0.9598 GB, free: 18.43 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004933/0.8438, allocations: 2.604 MB / 0.9623 GB, free: 17.82 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001377/0.8452, allocations: 0.5011 MB / 0.9628 GB, free: 17.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004221/0.8457, allocations: 24.7 kB / 0.9628 GB, free: 17.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001692/0.8474, allocations: 175.6 kB / 0.963 GB, free: 17.58 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.8475, allocations: 90.38 kB / 0.9631 GB, free: 17.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.8476, allocations: 56.75 kB / 0.9631 GB, free: 17.57 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002053/0.8497, allocations: 1.578 MB / 0.9647 GB, free: 17.43 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8497, allocations: 0 / 0.9647 GB, free: 17.43 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003416/0.8531, allocations: 1.382 MB / 0.966 GB, free: 17.29 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (pum.vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],vol.dynBal.U) * Number of discrete variables: 13 ($whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,reaToInt.y,uMod.booPul.y,pulse.booPul.y,TSouEnt.booPul.y,TLoaSet.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001208/0.8543, allocations: 0.6923 MB / 0.9667 GB, free: 17.15 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.006148/0.8605, allocations: 3.306 MB / 0.9699 GB, free: 16.53 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/0.8605, allocations: 5.516 kB / 0.9699 GB, free: 16.53 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.862, allocations: 0.7094 MB / 0.9706 GB, free: 16.51 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004888/0.8669, allocations: 1.106 MB / 0.9717 GB, free: 16.43 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00744/0.8744, allocations: 5.016 MB / 0.9766 GB, free: 14.12 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001021/0.8755, allocations: 1.705 MB / 0.9783 GB, free: 13.36 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0028/0.8783, allocations: 0.599 MB / 0.9788 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/0.8787, allocations: 192.5 kB / 0.979 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of SimCode: time 6.72e-07/0.8787, allocations: 0 / 0.979 GB, free: 13.15 MB / 0.7169 GB Notification: Performance of Templates: time 0.07858/0.9573, allocations: 50 MB / 1.028 GB, free: 212 kB / 0.7481 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.sim & ./Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatPumps.Examples.EquationFitReversible_CoolingClosedLoop.pipe 2>&1) Environment - environmentSimulation: