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.7375/0.7375, allocations: 127.4 MB / 134.9 MB, free: 3.742 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 180.8 kB / 164.7 MB, free: 6.543 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.507/1.507, allocations: 205.2 MB / 399.5 MB, free: 5.945 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.0008228/0.0008228, allocations: 86.41 kB / 476.7 MB, free: 8.676 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.246e-05/2.249e-05, allocations: 11.94 kB / 0.5467 GB, free: 60.36 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1584, allocations: 76.76 MB / 0.6217 GB, free: 15.53 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5539/0.7124, allocations: 118.1 MB / 0.737 GB, free: 13.4 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003789/0.7128, allocations: 110.3 kB / 0.7371 GB, free: 13.33 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.1064/0.8192, allocations: 25.9 MB / 0.7624 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8193, allocations: 0 / 0.7624 GB, free: 6.957 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.152e-05/0.8193, allocations: 20 kB / 0.7624 GB, free: 6.938 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.002679/0.822, allocations: 1.355 MB / 0.7637 GB, free: 5.609 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.8221, allocations: 15.98 kB / 0.7638 GB, free: 5.594 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004628/0.8226, allocations: 157.9 kB / 0.7639 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.8236, allocations: 0.6367 MB / 0.7645 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.8236, allocations: 7.984 kB / 0.7645 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.179e-05/0.8237, allocations: 24 kB / 0.7646 GB, free: 4.703 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004999/0.8242, allocations: 419 kB / 0.765 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.8246, allocations: 388.8 kB / 0.7653 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.8246, allocations: 0 / 0.7653 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.8247, allocations: 3.938 kB / 0.7653 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.8247, allocations: 4.938 kB / 0.7653 GB, free: 3.906 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.8257, allocations: 0.9315 MB / 0.7663 GB, free: 3.098 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005024/0.8262, allocations: 0.5505 MB / 0.7668 GB, free: 2.535 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.8265, allocations: 332.7 kB / 0.7671 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001105/0.8276, allocations: 1.032 MB / 0.7681 GB, free: 0.957 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.828, allocations: 395.1 kB / 0.7685 GB, free: 0.5625 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.192e-06/0.828, allocations: 4 kB / 0.7685 GB, free: 0.5586 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.001135/0.8292, allocations: 1.02 MB / 0.7695 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.8292, allocations: 88.83 kB / 0.7696 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.8309, allocations: 1.524 MB / 0.7711 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.332e-05/0.831, allocations: 37.64 kB / 0.7711 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003818/0.8313, allocations: 473.3 kB / 0.7716 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.8314, allocations: 22.83 kB / 0.7716 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-05/0.8314, allocations: 4 kB / 0.7716 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001826/0.8316, allocations: 412.2 kB / 0.772 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.833, allocations: 1.448 MB / 0.7734 GB, free: 12.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.8345, allocations: 1.583 MB / 0.7749 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.8363, allocations: 1.843 MB / 0.7767 GB, free: 9.887 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.8363, allocations: 0 / 0.7767 GB, free: 9.887 MB / 0.5261 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004507/0.8409, allocations: 3.967 MB / 0.7806 GB, free: 6.742 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.8409, allocations: 4 kB / 0.7806 GB, free: 6.738 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.411e-05/0.841, allocations: 31.95 kB / 0.7806 GB, free: 6.707 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.74e-05/0.841, allocations: 4 kB / 0.7806 GB, free: 6.703 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/0.8417, allocations: 138.9 kB / 0.7808 GB, free: 6.57 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.8417, allocations: 4 kB / 0.7808 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009472/0.8427, allocations: 236.2 kB / 0.781 GB, free: 6.332 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001179/0.8428, allocations: 93.61 kB / 0.7811 GB, free: 6.254 MB / 0.5261 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.0001406/0.843, allocations: 117.9 kB / 0.7812 GB, free: 6.133 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008875/0.8439, allocations: 1.006 MB / 0.7822 GB, free: 5.133 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.844, allocations: 118 kB / 0.7823 GB, free: 5.016 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001019/0.845, allocations: 1.001 MB / 0.7833 GB, free: 4.039 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.845, allocations: 7.953 kB / 0.7833 GB, free: 4.031 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.845, allocations: 3.984 kB / 0.7833 GB, free: 4.027 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.845, allocations: 0 / 0.7833 GB, free: 4.027 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007059/0.8457, allocations: 0.6459 MB / 0.7839 GB, free: 3.465 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.8458, allocations: 0 / 0.7839 GB, free: 3.465 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.321e-05/0.8458, allocations: 4 kB / 0.7839 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.8458, allocations: 4.031 kB / 0.7839 GB, free: 3.457 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.8459, allocations: 10.8 kB / 0.7839 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.8459, allocations: 0 / 0.7839 GB, free: 3.449 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.8459, allocations: 4.234 kB / 0.7839 GB, free: 3.445 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008654/0.8468, allocations: 1.066 MB / 0.785 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.847, allocations: 207.1 kB / 0.7852 GB, free: 2.137 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.8471, allocations: 6.812 kB / 0.7852 GB, free: 2.133 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.8474, allocations: 7.984 kB / 0.7852 GB, free: 2.125 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.8475, allocations: 7.953 kB / 0.7852 GB, free: 2.117 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.207e-05/0.8475, allocations: 15.97 kB / 0.7852 GB, free: 2.102 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00111/0.8486, allocations: 1.011 MB / 0.7862 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8486, allocations: 0 / 0.7862 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001917/0.8506, allocations: 0.5049 MB / 0.7867 GB, free: 0.7656 MB / 0.5261 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.00292/0.8535, allocations: 2.134 MB / 0.7888 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002211/0.8557, allocations: 2.479 MB / 0.7912 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.8557, allocations: 8 kB / 0.7912 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.856, allocations: 331.8 kB / 0.7915 GB, free: 12.45 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.8564, allocations: 70.42 kB / 0.7916 GB, free: 12.38 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003779/0.8602, allocations: 2.521 MB / 0.7941 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007646/0.861, allocations: 1.187 MB / 0.7952 GB, free: 8.59 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0004082/0.8614, allocations: 126.4 kB / 0.7953 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005178/0.8619, allocations: 475.2 kB / 0.7958 GB, free: 7.996 MB / 0.5417 GB Notification: Performance of SimCode: time 8.42e-07/0.8619, allocations: 0 / 0.7958 GB, free: 7.996 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05507/0.917, allocations: 22.98 MB / 0.8182 GB, free: 1.027 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/0.9173, allocations: 236.8 kB / 0.8185 GB, free: 0.7383 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.805/3.722, allocations: 2.578 kB / 0.8185 GB, free: 0.7383 MB / 0.5573 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)