Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.6862/0.6862, allocations: 127.3 MB / 139.8 MB, free: 15.45 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 180.8 kB / 169.7 MB, free: 1.723 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.1 MB / 404.5 MB, free: 1.57 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009734/0.0009736, allocations: 90.17 kB / 481.8 MB, free: 4.219 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.111e-05/4.14e-05, allocations: 4 kB / 0.5533 GB, free: 54.67 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1568, allocations: 76.76 MB / 0.6283 GB, free: 9.852 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5503/0.7071, allocations: 118.5 MB / 0.744 GB, free: 11.04 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.7074, allocations: 114.5 kB / 0.7441 GB, free: 10.97 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_100boreholes.mo:19:38-19:49:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_100boreholes.mo:20:39-20:50:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_100boreholes.mo:21:56-21:67:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/IBPSA/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/Examples/GFunction_100boreholes.mo:22:41-22:52:writable] Warning: Non-array modification 'false' for array component, possibly due to missing 'each'. Notification: Performance of FrontEnd - DAE generated: time 0.1108/0.8182, allocations: 26.07 MB / 0.7696 GB, free: 3.492 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.764e-06/0.8182, allocations: 0 / 0.7696 GB, free: 3.492 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001073/0.8184, allocations: 20 kB / 0.7696 GB, free: 3.473 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.003547/0.8219, allocations: 1.355 MB / 0.7709 GB, free: 2.066 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.822, allocations: 8.031 kB / 0.7709 GB, free: 2.059 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.941e-05/0.8221, allocations: 38.5 kB / 0.7709 GB, free: 2.012 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005867/0.8226, allocations: 154 kB / 0.7711 GB, free: 1.859 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001336/0.824, allocations: 0.6494 MB / 0.7717 GB, free: 1.141 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.8241, allocations: 24 kB / 0.7718 GB, free: 1.117 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.8242, allocations: 36 kB / 0.7718 GB, free: 1.082 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.8246, allocations: 387.1 kB / 0.7722 GB, free: 0.6914 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.8246, allocations: 3.953 kB / 0.7722 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.8247, allocations: 0 / 0.7722 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.8247, allocations: 4 kB / 0.7722 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.8251, allocations: 427.8 kB / 0.7726 GB, free: 272 kB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.8266, allocations: 0.9905 MB / 0.7735 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005876/0.8272, allocations: 0.5555 MB / 0.7741 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003177/0.8275, allocations: 329.7 kB / 0.7744 GB, free: 14.31 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001228/0.8288, allocations: 1.04 MB / 0.7754 GB, free: 13.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004643/0.8292, allocations: 404.8 kB / 0.7758 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=8): time 2.034e-06/0.8293, allocations: 0 / 0.7758 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8): time 0.001267/0.8305, allocations: 1.019 MB / 0.7768 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.005e-05/0.8306, allocations: 93.03 kB / 0.7769 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.8328, allocations: 1.611 MB / 0.7785 GB, free: 9.836 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 8.278e-05/0.8329, allocations: 45.7 kB / 0.7785 GB, free: 9.785 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.8333, allocations: 493.9 kB / 0.779 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/0.8334, allocations: 19.72 kB / 0.779 GB, free: 9.277 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-05/0.8334, allocations: 16 kB / 0.779 GB, free: 9.262 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002105/0.8336, allocations: 407 kB / 0.7794 GB, free: 8.859 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.8353, allocations: 1.467 MB / 0.7808 GB, free: 7.391 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/0.837, allocations: 1.602 MB / 0.7824 GB, free: 5.773 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002039/0.8391, allocations: 1.861 MB / 0.7842 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.8391, allocations: 0 / 0.7842 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.005148/0.8442, allocations: 4.019 MB / 0.7881 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.8443, allocations: 9.031 kB / 0.7881 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.682e-05/0.8443, allocations: 20 kB / 0.7882 GB, free: 15.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.8444, allocations: 7.984 kB / 0.7882 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006861/0.8451, allocations: 147.8 kB / 0.7883 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.8451, allocations: 4 kB / 0.7883 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009178/0.846, allocations: 248.3 kB / 0.7885 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.8461, allocations: 91.98 kB / 0.7886 GB, free: 15.32 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * 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.0001499/0.8463, allocations: 132.6 kB / 0.7888 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.8464, allocations: 122 kB / 0.7889 GB, free: 15.06 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.8476, allocations: 1.004 MB / 0.7899 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.8476, allocations: 0 / 0.7899 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.8476, allocations: 3.953 kB / 0.7899 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.8476, allocations: 0 / 0.7899 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006948/0.8483, allocations: 0.6833 MB / 0.7905 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.8483, allocations: 3.938 kB / 0.7905 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.027e-05/0.8484, allocations: 8 kB / 0.7905 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.8484, allocations: 0 / 0.7905 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.8484, allocations: 3.984 kB / 0.7905 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.8484, allocations: 4 kB / 0.7905 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.8484, allocations: 0 / 0.7905 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009561/0.8494, allocations: 1.069 MB / 0.7916 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.8496, allocations: 203.1 kB / 0.7918 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.8497, allocations: 0 / 0.7918 GB, free: 11.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003328/0.8501, allocations: 7.984 kB / 0.7918 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.8501, allocations: 23.88 kB / 0.7918 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.436e-05/0.8502, allocations: 11.98 kB / 0.7918 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001336/0.8515, allocations: 1.093 MB / 0.7929 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8515, allocations: 0 / 0.7929 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001788/0.8533, allocations: 0.5228 MB / 0.7934 GB, free: 10.27 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.002759/0.8561, allocations: 2.134 MB / 0.7955 GB, free: 8.098 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00242/0.8585, allocations: 2.503 MB / 0.7979 GB, free: 5.586 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8585, allocations: 3.938 kB / 0.7979 GB, free: 5.582 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000323/0.8589, allocations: 331.8 kB / 0.7983 GB, free: 5.258 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.8592, allocations: 66.62 kB / 0.7983 GB, free: 5.188 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003548/0.8627, allocations: 2.55 MB / 0.8008 GB, free: 2.586 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007691/0.8635, allocations: 1.179 MB / 0.802 GB, free: 1.379 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0004016/0.8639, allocations: 134.3 kB / 0.8021 GB, free: 1.246 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005393/0.8645, allocations: 475.2 kB / 0.8025 GB, free: 0.7812 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.8645, allocations: 3.938 kB / 0.8025 GB, free: 0.7773 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04505/0.9095, allocations: 23.93 MB / 0.8259 GB, free: 9.004 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002008/0.9098, allocations: 243.2 kB / 0.8261 GB, free: 8.684 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.857/3.766, allocations: 0 / 0.8261 GB, free: 8.684 MB / 0.573 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes_fmu --startTime=0 --stopTime=3.7e+11 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Examples_GFunction_100boreholes.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Examples.GFunction_100boreholes.pipe 2>&1)