Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.395/2.395, allocations: 390.4 MB / 397.7 MB, free: 11.29 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001198, allocations: 180 kB / 490.8 MB, free: 1.945 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 221.4 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009289/0.0009285, allocations: 99.59 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6768/0.6778, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.9506, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8119/1.763, allocations: 154.1 MB / 1.362 GB, free: 17.16 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/1.763, allocations: 91.8 kB / 1.362 GB, free: 17.16 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.02611/1.789, allocations: 5.709 MB / 1.368 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/1.789, allocations: 12.69 kB / 1.368 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/1.789, allocations: 29.91 kB / 1.368 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005841/1.79, allocations: 291.1 kB / 1.368 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.447e-05/1.79, allocations: 14.41 kB / 1.368 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.711e-05/1.79, allocations: 17.28 kB / 1.368 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002627/1.79, allocations: 59.17 kB / 1.368 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003919/1.791, allocations: 176.2 kB / 1.368 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/1.791, allocations: 5.062 kB / 1.368 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/1.791, allocations: 2.766 kB / 1.368 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/1.791, allocations: 3.281 kB / 1.368 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/1.792, allocations: 0.853 MB / 1.369 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004378/1.793, allocations: 169.5 kB / 1.369 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/1.793, allocations: 61.27 kB / 1.369 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/1.793, allocations: 2.375 kB / 1.369 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000347/1.793, allocations: 173.6 kB / 1.37 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=23): time 2.574e-06/1.793, allocations: 0 / 1.37 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.0007692/1.794, allocations: 186.5 kB / 1.37 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.294e-05/1.794, allocations: 118.7 kB / 1.37 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/1.794, allocations: 199.1 kB / 1.37 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/1.794, allocations: 30.09 kB / 1.37 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/1.795, allocations: 124.2 kB / 1.37 GB, free: 30.71 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.552e-05/1.795, allocations: 61.11 kB / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.78e-05/1.795, allocations: 0 / 1.37 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001876/1.795, allocations: 342.7 kB / 1.371 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/1.795, allocations: 49.22 kB / 1.371 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/1.795, allocations: 225.2 kB / 1.371 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/1.796, allocations: 82.44 kB / 1.371 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/1.796, allocations: 2.219 kB / 1.371 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007338/1.796, allocations: 280.8 kB / 1.371 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/1.796, allocations: 5.344 kB / 1.371 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/1.796, allocations: 10.34 kB / 1.371 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-05/1.796, allocations: 9.344 kB / 1.371 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/1.797, allocations: 71.14 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.309e-05/1.797, allocations: 14.3 kB / 1.371 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/1.797, allocations: 48.3 kB / 1.371 GB, free: 30 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/1.797, allocations: 20.31 kB / 1.371 GB, free: 30 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.TBouSte.QAve_flow,TBouSte.QAve_flow,$PRE.TBouSte.UOld,TBouSte.UOld,$PRE.TBouSte.port.T,TBouSte.port.T,$PRE.TBouSte.iSam,TBouSte.iSam,$whenCondition4,$PRE.TBouCon.QAve_flow,TBouCon.QAve_flow,$PRE.TBouCon.UOld,TBouCon.UOld,$PRE.TBouCon.port.T,TBouCon.port.T,$PRE.TBouCon.iSam,TBouCon.iSam,$whenCondition3,$PRE.TBouPul.QAve_flow,TBouPul.QAve_flow,$PRE.TBouPul.UOld,TBouPul.UOld,$PRE.TBouPul.port.T,TBouPul.port.T,$PRE.TBouPul.iSam,TBouPul.iSam,$whenCondition1,$whenCondition2,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.00018/1.798, allocations: 135.7 kB / 1.372 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/1.798, allocations: 29.22 kB / 1.372 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.565e-05/1.798, allocations: 22.66 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/1.798, allocations: 2.469 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/1.798, allocations: 0.9375 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/1.798, allocations: 6.859 kB / 1.372 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003777/1.798, allocations: 236.2 kB / 1.372 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/1.798, allocations: 5.156 kB / 1.372 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/1.798, allocations: 29.92 kB / 1.372 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.196e-06/1.798, allocations: 2.75 kB / 1.372 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/1.798, allocations: 6.391 kB / 1.372 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/1.798, allocations: 1.531 kB / 1.372 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.798, allocations: 2.531 kB / 1.372 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009052/1.799, allocations: 337.3 kB / 1.372 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001202/1.801, allocations: 0.7637 MB / 1.373 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/1.801, allocations: 109.9 kB / 1.373 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.25e-05/1.801, allocations: 13.42 kB / 1.373 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/1.801, allocations: 17.66 kB / 1.373 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/1.801, allocations: 21.45 kB / 1.373 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.317e-05/1.801, allocations: 16.05 kB / 1.373 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002257/1.802, allocations: 149.9 kB / 1.373 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001923/1.803, allocations: 88.72 kB / 1.373 GB, free: 28.82 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (TBouSte.U,TBouCon.U,TBouPul.U) * Number of discrete variables: 18 ($whenCondition4,TBouSte.QAve_flow,TBouSte.port.T,TBouSte.UOld,TBouSte.iSam,$whenCondition3,TBouCon.QAve_flow,TBouCon.port.T,TBouCon.UOld,TBouCon.iSam,$whenCondition2,$whenCondition1,TBouPul.QAve_flow,TBouPul.port.T,TBouPul.UOld,TBouPul.iSam,pulse.T_start,pulse.count) * Number of discrete states: 7 (TBouPul.iSam,TBouPul.UOld,pulse.count,TBouCon.iSam,TBouCon.UOld,TBouSte.iSam,TBouSte.UOld) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.0006029/1.804, allocations: 188.7 kB / 1.373 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006145/1.805, allocations: 199.6 kB / 1.374 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/1.805, allocations: 0 / 1.374 GB, free: 28.66 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002307/1.805, allocations: 90.34 kB / 1.374 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/1.806, allocations: 48.67 kB / 1.374 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/1.808, allocations: 0.5842 MB / 1.374 GB, free: 28.38 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/1.808, allocations: 0.777 MB / 1.375 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of SimCode: time 3.41e-07/1.808, allocations: 0 / 1.375 GB, free: 27.67 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition_fmu --startTime=0 --stopTime=1.5768e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_SingleUTubeBoundaryCondition.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.SingleUTubeBoundaryCondition.pipe 2>&1)