Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor",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.001155/0.001155, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.197/1.197, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.259/2.259, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.503/0.5043, allocations: 140.4 MB / 0.9497 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor): time 0.1043/0.6086, allocations: 115.6 MB / 1.063 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02569/0.6343, allocations: 20.91 MB / 1.083 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002931/0.6373, allocations: 119.4 kB / 1.083 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003694/0.641, allocations: 1.642 MB / 1.085 GB, free: 7.105 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008473/0.6495, allocations: 3.964 MB / 1.089 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006005/0.6555, allocations: 2.853 MB / 1.091 GB, free: 308 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.008187/0.6637, allocations: 8.051 MB / 1.099 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003369/0.6671, allocations: 2.68 MB / 1.102 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00508/0.6722, allocations: 2.972 MB / 1.105 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003097/0.6753, allocations: 2.353 MB / 1.107 GB, free: 152 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005407/0.6758, allocations: 328 kB / 1.107 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003611/0.6795, allocations: 2.04 MB / 1.109 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0007563/0.6802, allocations: 0.9384 MB / 1.11 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001637/0.6819, allocations: 1.851 MB / 1.112 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.005159/0.687, allocations: 5.488 MB / 1.117 GB, free: 5.48 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.6871, allocations: 4 kB / 1.117 GB, free: 5.477 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6871, allocations: 0 / 1.117 GB, free: 5.477 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.786e-05/0.6871, allocations: 0 / 1.117 GB, free: 5.477 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 494 * Number of variables: 494 Notification: Performance of Generate backend data structure: time 0.005867/0.693, allocations: 3.875 MB / 1.121 GB, free: 1.527 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.693, allocations: 8.031 kB / 1.121 GB, free: 1.52 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003232/0.6933, allocations: 290.7 kB / 1.122 GB, free: 1.227 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002576/0.6959, allocations: 0.5891 MB / 1.122 GB, free: 0.6328 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.6994, allocations: 2.516 MB / 1.125 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002584/0.6996, allocations: 298.7 kB / 1.125 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002823/0.6999, allocations: 203.9 kB / 1.125 GB, free: 13.53 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004131/0.7041, allocations: 2.568 MB / 1.128 GB, free: 10.84 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.92e-05/0.7041, allocations: 11.94 kB / 1.128 GB, free: 10.83 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002123/0.7043, allocations: 95.92 kB / 1.128 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-05/0.7044, allocations: 59.98 kB / 1.128 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004428/0.7088, allocations: 2.215 MB / 1.13 GB, free: 8.457 MB / 0.8887 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.01155/0.7204, allocations: 11.5 MB / 1.141 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002363/0.7228, allocations: 1.305 MB / 1.142 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.7242, allocations: 0.808 MB / 1.143 GB, free: 10.33 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007946/0.725, allocations: 1.331 MB / 1.144 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001755/0.7268, allocations: 1.052 MB / 1.146 GB, free: 7.598 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=115): time 2.314e-06/0.7268, allocations: 7.938 kB / 1.146 GB, free: 7.59 MB / 0.9044 GB Notification: Performance of matching and sorting (n=115): time 0.004622/0.7314, allocations: 2.383 MB / 1.148 GB, free: 5.195 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/0.7316, allocations: 487.8 kB / 1.148 GB, free: 4.609 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/0.7343, allocations: 2.705 MB / 1.151 GB, free: 1.891 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.7344, allocations: 57.7 kB / 1.151 GB, free: 1.828 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008783/0.7353, allocations: 1.307 MB / 1.152 GB, free: 0.5078 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.7356, allocations: 406.2 kB / 1.153 GB, free: 108 kB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004674/0.736, allocations: 339.2 kB / 1.153 GB, free: 15.77 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 7.29e-05/0.7361, allocations: 301.1 kB / 1.153 GB, free: 15.47 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.7376, allocations: 0.7777 MB / 1.154 GB, free: 14.69 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/0.7394, allocations: 1.313 MB / 1.155 GB, free: 13.16 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003041/0.7425, allocations: 1.86 MB / 1.157 GB, free: 11.16 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.7425, allocations: 4 kB / 1.157 GB, free: 11.15 MB / 0.92 GB Notification: Performance of matching and sorting (n=196) (initialization): time 0.00387/0.7464, allocations: 2.257 MB / 1.159 GB, free: 8.879 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.7464, allocations: 33.7 kB / 1.159 GB, free: 8.84 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.7464, allocations: 12 kB / 1.159 GB, free: 8.828 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.7465, allocations: 19.98 kB / 1.159 GB, free: 8.809 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.748, allocations: 411.7 kB / 1.16 GB, free: 8.406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.087e-05/0.748, allocations: 23.88 kB / 1.16 GB, free: 8.383 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001593/0.7496, allocations: 261.8 kB / 1.16 GB, free: 8.125 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.7497, allocations: 71.92 kB / 1.16 GB, free: 8.055 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002046/0.7518, allocations: 1.281 MB / 1.161 GB, free: 6.77 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001807/0.7536, allocations: 1.309 MB / 1.163 GB, free: 5.25 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002998/0.7566, allocations: 1.849 MB / 1.164 GB, free: 3.258 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.737e-06/0.7566, allocations: 0 / 1.164 GB, free: 3.258 MB / 0.92 GB Notification: Performance of matching and sorting (n=196) (initialization_lambda0): time 0.003837/0.7605, allocations: 2.249 MB / 1.167 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.7605, allocations: 45.69 kB / 1.167 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.7605, allocations: 12 kB / 1.167 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.7605, allocations: 20 kB / 1.167 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001481/0.762, allocations: 407.8 kB / 1.167 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.796e-05/0.762, allocations: 23.92 kB / 1.167 GB, free: 500 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.7637, allocations: 211.1 kB / 1.167 GB, free: 288 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.7638, allocations: 75.97 kB / 1.167 GB, free: 212 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (uMod.count,$PRE.uMod.count,uMod.T_start,$PRE.uMod.T_start,reaToInt.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002922/0.7641, allocations: 279.8 kB / 1.168 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003784/0.7645, allocations: 280.6 kB / 1.168 GB, free: 15.64 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/0.7681, allocations: 2.109 MB / 1.17 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-05/0.7682, allocations: 12 kB / 1.17 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/0.7682, allocations: 3.938 kB / 1.17 GB, free: 13.51 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002899/0.7711, allocations: 1.653 MB / 1.172 GB, free: 11.81 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006637/0.7777, allocations: 5.233 MB / 1.177 GB, free: 6.438 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.7778, allocations: 8 kB / 1.177 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.779, allocations: 263.5 kB / 1.177 GB, free: 6.172 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.779, allocations: 12 kB / 1.177 GB, free: 6.16 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.344e-05/0.7791, allocations: 39.97 kB / 1.177 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.7791, allocations: 11.94 kB / 1.177 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.7791, allocations: 12.09 kB / 1.177 GB, free: 6.098 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004984/0.7841, allocations: 3.082 MB / 1.18 GB, free: 2.918 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007358/0.7848, allocations: 0.5909 MB / 1.181 GB, free: 2.305 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003164/0.7852, allocations: 31.98 kB / 1.181 GB, free: 2.273 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/0.7866, allocations: 115.9 kB / 1.181 GB, free: 2.16 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.7868, allocations: 116.7 kB / 1.181 GB, free: 2.047 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.787, allocations: 59.95 kB / 1.181 GB, free: 1.988 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001987/0.7889, allocations: 1.888 MB / 1.183 GB, free: 104 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.789, allocations: 0 / 1.183 GB, free: 104 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002544/0.7915, allocations: 1.45 MB / 1.184 GB, free: 14.65 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (heaPum.vol1.dynBal.U,heaPum.vol2.dynBal.U,heaPum1.vol1.dynBal.U,heaPum1.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,reaToInt.y,uMod.T_start,uMod.count) * Number of discrete states: 1 (uMod.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006101/0.7976, allocations: 4.214 MB / 1.188 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005604/0.8032, allocations: 3.167 MB / 1.191 GB, free: 7.16 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.8032, allocations: 4.672 kB / 1.191 GB, free: 7.156 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.8049, allocations: 0.9289 MB / 1.192 GB, free: 6.227 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00481/0.8097, allocations: 1.389 MB / 1.194 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02737/0.8371, allocations: 24.5 MB / 1.218 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.8382, allocations: 1.773 MB / 1.219 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002274/0.8405, allocations: 0.707 MB / 1.22 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/0.8418, allocations: 1.155 MB / 1.221 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of SimCode: time 3.2e-07/0.8418, allocations: 0 / 1.221 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.638/2.48, allocations: 78.67 MB / 1.298 GB, free: 272.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.823/12.3, allocations: 3.625 kB / 1.298 GB, free: 272.4 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatPumps_Validation_EquationFitReversible_ScalingFactor.fmu > Buildings_9_Buildings.Fluid.HeatPumps.Validation.EquationFitReversible_ScalingFactor.pipe 2>&1)