Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells.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.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_ShiftAggregationCells",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_ShiftAggregationCells",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.001098/0.001098, 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.001199/0.001199, allocations: 194 kB / 16.53 MB, free: 6.699 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.277/1.277, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002036/0.002036, allocations: 286.8 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9255/0.9255, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 116.5 kB / 0.5954 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1399, allocations: 86.98 MB / 0.6803 GB, free: 0.543 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells): time 0.002155/0.1421, allocations: 1.237 MB / 0.6815 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007536/0.1429, allocations: 478.7 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.611e-05/0.1429, allocations: 4 kB / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.473e-05/0.143, allocations: 0 / 0.682 GB, free: 14.83 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.63e-05/0.143, allocations: 3.984 kB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.1433, allocations: 59.81 kB / 0.6821 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.676e-05/0.1434, allocations: 11.98 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.846e-05/0.1434, allocations: 0 / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.008e-05/0.1434, allocations: 4 kB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.016e-05/0.1435, allocations: 11.97 kB / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.005e-06/0.1435, allocations: 0 / 0.6821 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001439/0.1437, allocations: 63.86 kB / 0.6821 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.993e-05/0.1437, allocations: 15.98 kB / 0.6822 GB, free: 14.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.1438, allocations: 7.938 kB / 0.6822 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.1439, allocations: 64.06 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1439, allocations: 4 kB / 0.6822 GB, free: 14.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1439, allocations: 4 kB / 0.6822 GB, free: 14.58 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.1439, allocations: 0 / 0.6822 GB, free: 14.58 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000317/0.1442, allocations: 335.5 kB / 0.6826 GB, free: 14.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.1443, allocations: 8.031 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.969e-05/0.1443, allocations: 38.69 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.516e-05/0.1443, allocations: 4.844 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.626e-05/0.1444, allocations: 160.4 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1444, allocations: 4.359 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.677e-06/0.1444, allocations: 4.375 kB / 0.6828 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.191e-05/0.1445, allocations: 57.81 kB / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.1445, allocations: 0 / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.1446, allocations: 0 / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.347e-06/0.1446, allocations: 0 / 0.6828 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.794e-05/0.1446, allocations: 15.94 kB / 0.6828 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001281/0.1447, allocations: 157.6 kB / 0.683 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.184e-05/0.1448, allocations: 30.62 kB / 0.683 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.392e-05/0.1448, allocations: 20.95 kB / 0.683 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.611e-06/0.1448, allocations: 4 kB / 0.683 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000109/0.1449, allocations: 67.33 kB / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.1449, allocations: 0 / 0.6831 GB, free: 13.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001722/0.1451, allocations: 97.61 kB / 0.6832 GB, free: 13.42 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.1452, allocations: 63.39 kB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.159e-05/0.1452, allocations: 89.86 kB / 0.6833 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.1452, allocations: 37.73 kB / 0.6834 GB, free: 13.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.348e-05/0.1453, allocations: 80.14 kB / 0.6835 GB, free: 13.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.1453, allocations: 19.8 kB / 0.6835 GB, free: 13.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.523e-05/0.1453, allocations: 25.72 kB / 0.6835 GB, free: 13.07 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.1454, allocations: 322.8 kB / 0.6838 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.571e-05/0.1455, allocations: 19.98 kB / 0.6838 GB, free: 12.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.852e-05/0.1455, allocations: 66 kB / 0.6839 GB, free: 12.64 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001158/0.1457, allocations: 101.9 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1457, allocations: 4 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000144/0.1458, allocations: 113.4 kB / 0.6841 GB, free: 12.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1459, allocations: 4 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1459, allocations: 4 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1459, allocations: 3.984 kB / 0.6841 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.077e-05/0.146, allocations: 19.94 kB / 0.6841 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.315e-06/0.146, allocations: 4.219 kB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.972e-05/0.146, allocations: 4 kB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.146, allocations: 4 kB / 0.6841 GB, free: 12.36 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 13 (QAggShi_flow[5],$PRE.QAggShi_flow[5],QAggShi_flow[4],$PRE.QAggShi_flow[4],QAggShi_flow[3],$PRE.QAggShi_flow[3],QAggShi_flow[2],$PRE.QAggShi_flow[2],QAggShi_flow[1],$PRE.QAggShi_flow[1],curCel,$PRE.curCel,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 8.254e-05/0.1461, allocations: 131.5 kB / 0.6843 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.1461, allocations: 7.938 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.606e-05/0.1461, allocations: 3.969 kB / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1461, allocations: 0 / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.1462, allocations: 0 / 0.6843 GB, free: 12.21 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.1462, allocations: 4 kB / 0.6843 GB, free: 12.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.1463, allocations: 161.5 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1463, allocations: 0 / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.648e-06/0.1463, allocations: 3.938 kB / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1463, allocations: 0 / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.1463, allocations: 4 kB / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1463, allocations: 0 / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1463, allocations: 240 / 0.6844 GB, free: 11.99 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001228/0.1465, allocations: 105.1 kB / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.335e-05/0.1465, allocations: 93.06 kB / 0.6846 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.1465, allocations: 11.92 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.1465, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.494e-05/0.1466, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1466, allocations: 4 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.037e-05/0.1466, allocations: 75.28 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1466, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.1468, allocations: 24 kB / 0.6847 GB, free: 11.64 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,curCel,QAggShi_flow[1],QAggShi_flow[2],QAggShi_flow[3],QAggShi_flow[4],QAggShi_flow[5]) * Number of discrete states: 5 (QAggShi_flow[1],QAggShi_flow[2],QAggShi_flow[3],QAggShi_flow[4],QAggShi_flow[5]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004515/0.1473, allocations: 0.6753 MB / 0.6854 GB, free: 10.94 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001148/0.1474, allocations: 59.84 kB / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1474, allocations: 4 kB / 0.6855 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.738e-05/0.1475, allocations: 16.47 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.1476, allocations: 10.08 kB / 0.6855 GB, free: 10.86 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003463/0.1479, allocations: 151.2 kB / 0.6856 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.1482, allocations: 0.6846 MB / 0.6863 GB, free: 9.957 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.122e-05/0.1482, allocations: 4 kB / 0.6863 GB, free: 9.953 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.318e-05/0.1482, allocations: 11.42 kB / 0.6863 GB, free: 9.941 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1482, allocations: 4 kB / 0.6863 GB, free: 9.938 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01551/0.1637, allocations: 1.586 MB / 0.6879 GB, free: 8.547 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.942/7.106, allocations: 8.438 kB / 0.6879 GB, free: 8.543 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells_res.csv --start-time 3.5 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_LoadAggregation_Validation_ShiftAggregationCells.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.LoadAggregation.Validation.ShiftAggregationCells.pipe 2>&1)