Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.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.ModularReversible.Validation.ConstantCarnotEffectiveness,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness",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.001274/0.001274, allocations: 108 kB / 15.6 MB, free: 132 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.001533/0.001533, allocations: 194 kB / 16.53 MB, free: 6.391 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.446/1.446, allocations: 222.9 MB / 240.2 MB, free: 4.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 278.6 kB / 290.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.057/1.057, allocations: 178.6 MB / 0.5073 GB, free: 4.57 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 107.9 kB / 0.6065 GB, free: 24.63 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1672, allocations: 89.14 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness): time 0.3631/0.5303, allocations: 80.97 MB / 0.7727 GB, free: 24.77 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.03127/0.5616, allocations: 18.92 MB / 0.7911 GB, free: 22.74 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006078/0.5677, allocations: 99.09 kB / 0.7912 GB, free: 22.71 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003298/0.5711, allocations: 1.181 MB / 0.7924 GB, free: 22.07 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007332/0.5785, allocations: 2.779 MB / 0.7951 GB, free: 20.8 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004601/0.5831, allocations: 1.903 MB / 0.797 GB, free: 19.86 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.006583/0.5897, allocations: 5.492 MB / 0.8023 GB, free: 17.25 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003257/0.5929, allocations: 2.627 MB / 0.8049 GB, free: 16.02 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004707/0.5977, allocations: 2.128 MB / 0.807 GB, free: 15.03 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002124/0.5998, allocations: 1.658 MB / 0.8086 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000423/0.6003, allocations: 305.8 kB / 0.8089 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003793/0.6041, allocations: 1.7 MB / 0.8105 GB, free: 13.79 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0005078/0.6046, allocations: 0.6906 MB / 0.8112 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.6059, allocations: 1.44 MB / 0.8126 GB, free: 12.39 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00562/0.6116, allocations: 4.749 MB / 0.8173 GB, free: 9.434 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6116, allocations: 0 / 0.8173 GB, free: 9.434 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.563e-06/0.6116, allocations: 1.375 kB / 0.8173 GB, free: 9.434 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.46e-05/0.6116, allocations: 0 / 0.8173 GB, free: 9.434 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: 453 * Number of variables: 453 Notification: Performance of Generate backend data structure: time 0.004658/0.6163, allocations: 3.04 MB / 0.8202 GB, free: 7.16 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.6164, allocations: 9.062 kB / 0.8202 GB, free: 7.16 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003291/0.6167, allocations: 272.2 kB / 0.8205 GB, free: 6.949 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001487/0.6182, allocations: 420.8 kB / 0.8209 GB, free: 6.75 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.6209, allocations: 2.029 MB / 0.8229 GB, free: 5.219 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.299e-05/0.6211, allocations: 150.3 kB / 0.823 GB, free: 5.148 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.6213, allocations: 189.1 kB / 0.8232 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002817/0.6241, allocations: 1.916 MB / 0.8251 GB, free: 3.906 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.742e-05/0.6241, allocations: 6.875 kB / 0.8251 GB, free: 3.902 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/0.6243, allocations: 72.59 kB / 0.8252 GB, free: 3.848 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.96e-05/0.6243, allocations: 44.97 kB / 0.8252 GB, free: 3.848 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00237/0.6267, allocations: 1.445 MB / 0.8266 GB, free: 3.129 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.008845/0.6356, allocations: 8.14 MB / 0.8346 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002209/0.6378, allocations: 1.054 MB / 0.8356 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006972/0.6385, allocations: 366.8 kB / 0.8359 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009716/0.6395, allocations: 1.159 MB / 0.8371 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008946/0.6404, allocations: 434.3 kB / 0.8375 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=67): time 2.665e-06/0.6404, allocations: 0 / 0.8375 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of matching and sorting (n=67): time 0.002586/0.643, allocations: 1.121 MB / 0.8386 GB, free: 9.367 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.905e-05/0.6431, allocations: 140.6 kB / 0.8387 GB, free: 9.207 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/HeatPumps/ModularReversible/Modular.mo:62:3-64:76:writable] Warning: Parameter heaPum.TEvaCoo_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=288.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Fluid/HeatPumps/ModularReversible/Modular.mo:59:3-61:76:writable] Warning: Parameter heaPum.TConCoo_nominal has no value, and is fixed during initialization (fixed=true), using available start value (start=288.15) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00231/0.6454, allocations: 1.78 MB / 0.8405 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.523e-05/0.6455, allocations: 46.14 kB / 0.8405 GB, free: 8.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009953/0.6465, allocations: 1.099 MB / 0.8416 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002413/0.6468, allocations: 242.6 kB / 0.8418 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.6471, allocations: 220.3 kB / 0.842 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.6472, allocations: 351.5 kB / 0.8423 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007437/0.648, allocations: 358.3 kB / 0.8427 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/0.6491, allocations: 0.6974 MB / 0.8434 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/0.6508, allocations: 0.9986 MB / 0.8443 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.6508, allocations: 4 kB / 0.8443 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002514/0.6533, allocations: 1.234 MB / 0.8456 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.6534, allocations: 12.09 kB / 0.8456 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/0.6534, allocations: 8 kB / 0.8456 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.6534, allocations: 12 kB / 0.8456 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008181/0.6542, allocations: 227.6 kB / 0.8458 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.405e-05/0.6543, allocations: 19.92 kB / 0.8458 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.6555, allocations: 162.7 kB / 0.846 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-05/0.6556, allocations: 47.98 kB / 0.846 GB, free: 3.312 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.tabMea.nextTimeEvent,$whenCondition1,heaPum.conHea.y,tabMea.nextTimeEventScaled,$PRE.tabMea.nextTimeEventScaled,tabMea.nextTimeEvent,heaPum.eff.hys.y,$PRE.heaPum.eff.hys.y,heaPum.hys.y,$PRE.heaPum.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * 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.0008275/0.6565, allocations: 0.4992 MB / 0.8465 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003037/0.6568, allocations: 189.7 kB / 0.8467 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.6591, allocations: 1.046 MB / 0.8477 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-05/0.6592, allocations: 11.98 kB / 0.8477 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.6592, allocations: 0 / 0.8477 GB, free: 1.582 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00174/0.6609, allocations: 0.8475 MB / 0.8485 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004719/0.6656, allocations: 2.869 MB / 0.8514 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.525e-06/0.6657, allocations: 3.938 kB / 0.8514 GB, free: 13.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006444/0.6663, allocations: 144 kB / 0.8515 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.6663, allocations: 4 kB / 0.8515 GB, free: 13.62 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.059e-05/0.6664, allocations: 27.98 kB / 0.8515 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.535e-06/0.6664, allocations: 8 kB / 0.8515 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.6664, allocations: 0 / 0.8515 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002879/0.6693, allocations: 1.526 MB / 0.853 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006688/0.67, allocations: 382.5 kB / 0.8534 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.6702, allocations: 20 kB / 0.8534 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000843/0.6711, allocations: 67.78 kB / 0.8535 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.6713, allocations: 60.48 kB / 0.8535 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/0.6713, allocations: 39.97 kB / 0.8536 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001776/0.6731, allocations: 1.198 MB / 0.8547 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.1e-07/0.6731, allocations: 0 / 0.8547 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001846/0.675, allocations: 0.6504 MB / 0.8554 GB, free: 9.574 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (heaPum.con.vol.dynBal.U,heaPum.eva.vol.dynBal.U,heaPum.refCycIneCon.criDam.x[1],heaPum.refCycIneCon.criDam.x[2],heaPum.refCycIneEva.criDam.x[1],heaPum.refCycIneEva.criDam.x[2]) * Number of discrete variables: 5 ($whenCondition1,heaPum.hys.y,heaPum.eff.hys.y,tabMea.nextTimeEvent,tabMea.nextTimeEventScaled) * Number of discrete states: 4 (tabMea.nextTimeEvent,tabMea.nextTimeEventScaled,heaPum.hys.y,heaPum.eff.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * 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.006157/0.6812, allocations: 2.855 MB / 0.8582 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003061/0.6843, allocations: 1.008 MB / 0.8591 GB, free: 5.883 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6843, allocations: 4.062 kB / 0.8591 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009528/0.6852, allocations: 423 kB / 0.8595 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004665/0.6899, allocations: 0.8504 MB / 0.8604 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02376/0.7137, allocations: 15 MB / 0.875 GB, free: 4.598 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/0.715, allocations: 1.497 MB / 0.8765 GB, free: 3.07 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001519/0.7165, allocations: 364.7 kB / 0.8768 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001258/0.7178, allocations: 0.9132 MB / 0.8777 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of SimCode: time 6.32e-07/0.7178, allocations: 3.938 kB / 0.8777 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/0.8238, allocations: 52.7 MB / 0.9292 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.91/9.734, allocations: 15 kB / 0.9292 GB, free: 13.83 MB / 0.6544 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness_res.csv --start-time 0 --stop-time 14365 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.746 BuildingSystems_BuildingSystems_Fluid_HeatPumps_ModularReversible_Validation_ConstantCarnotEffectiveness.fmu > BuildingSystems_BuildingSystems.Fluid.HeatPumps.ModularReversible.Validation.ConstantCarnotEffectiveness.pipe 2>&1)