Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.00101/0.00101, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007717/0.007717, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.249/1.249, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.103/2.103, allocations: 390.9 MB / 0.6664 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002743/0.0002743, allocations: 12 kB / 0.8161 GB, free: 13.08 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5564/0.5567, allocations: 142.4 MB / 0.9552 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.002295/0.559, allocations: 2.714 MB / 0.9579 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00179/0.5608, allocations: 2.081 MB / 0.9599 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000113/0.5609, allocations: 4.562 kB / 0.9599 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0009573/0.5619, allocations: 481.7 kB / 0.9603 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.5621, allocations: 134.1 kB / 0.9605 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 7.853e-05/0.5622, allocations: 49.19 kB / 0.9605 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.5625, allocations: 464.2 kB / 0.961 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.5627, allocations: 141.3 kB / 0.9611 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001331/0.5629, allocations: 129.3 kB / 0.9612 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001616/0.563, allocations: 166.4 kB / 0.9614 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.432e-05/0.5631, allocations: 18.81 kB / 0.9614 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.816e-05/0.5631, allocations: 18.41 kB / 0.9614 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.368e-05/0.5632, allocations: 83.72 kB / 0.9615 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.5634, allocations: 229 kB / 0.9617 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.5637, allocations: 0.5164 MB / 0.9622 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5637, allocations: 0.9688 kB / 0.9622 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5637, allocations: 0 / 0.9622 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.159e-06/0.5637, allocations: 0 / 0.9622 GB, free: 2.477 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0006719/0.5644, allocations: 0.6409 MB / 0.9628 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.5644, allocations: 8.781 kB / 0.9629 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.152e-05/0.5645, allocations: 58.58 kB / 0.9629 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.267e-05/0.5645, allocations: 45.22 kB / 0.963 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.5648, allocations: 375.7 kB / 0.9633 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/0.5649, allocations: 13.38 kB / 0.9633 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.368e-05/0.5649, allocations: 22.69 kB / 0.9633 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.5652, allocations: 214.6 kB / 0.9636 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.5653, allocations: 0.7188 kB / 0.9636 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.5653, allocations: 6.188 kB / 0.9636 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.5653, allocations: 4.812 kB / 0.9636 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003476/0.5657, allocations: 177.4 kB / 0.9637 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000849/0.5665, allocations: 0.8778 MB / 0.9646 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002497/0.5668, allocations: 158.5 kB / 0.9647 GB, free: 424 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.567, allocations: 120.3 kB / 0.9649 GB, free: 364 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.567, allocations: 1.188 kB / 0.9649 GB, free: 364 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.111e-05/0.567, allocations: 36.59 kB / 0.9649 GB, free: 320 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.567, allocations: 0 / 0.9649 GB, free: 320 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0005053/0.5675, allocations: 277 kB / 0.9652 GB, free: 172 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.613e-05/0.5675, allocations: 55.03 kB / 0.9652 GB, free: 108 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004275/0.568, allocations: 414.6 kB / 0.9656 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.568, allocations: 27.11 kB / 0.9656 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.5681, allocations: 216.5 kB / 0.9658 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.5682, allocations: 58.45 kB / 0.9659 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.5682, allocations: 21.95 kB / 0.9659 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.5684, allocations: 352.6 kB / 0.9663 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001459/0.5685, allocations: 60.95 kB / 0.9663 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001387/0.5687, allocations: 67.5 kB / 0.9664 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002884/0.569, allocations: 145.6 kB / 0.9665 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.569, allocations: 1.375 kB / 0.9665 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003833/0.5694, allocations: 218.5 kB / 0.9667 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.5694, allocations: 7.875 kB / 0.9667 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5694, allocations: 3.938 kB / 0.9667 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/0.5694, allocations: 1.062 kB / 0.9667 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.5696, allocations: 59.78 kB / 0.9668 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.5696, allocations: 0.9688 kB / 0.9668 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.5698, allocations: 35.11 kB / 0.9668 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.5698, allocations: 3.781 kB / 0.9668 GB, free: 14.93 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001358/0.57, allocations: 161.5 kB / 0.967 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.744e-05/0.57, allocations: 37.22 kB / 0.967 GB, free: 14.76 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.065e-05/0.5701, allocations: 47.08 kB / 0.9671 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.5701, allocations: 2.094 kB / 0.9671 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.5701, allocations: 4 kB / 0.9671 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.5701, allocations: 0.9375 kB / 0.9671 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003729/0.5705, allocations: 369.5 kB / 0.9674 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.5705, allocations: 5.172 kB / 0.9674 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002389/0.5708, allocations: 63.02 kB / 0.9675 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.5708, allocations: 1.125 kB / 0.9675 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.5708, allocations: 5.25 kB / 0.9675 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.5708, allocations: 1.312 kB / 0.9675 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.5708, allocations: 0 / 0.9675 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000592/0.5714, allocations: 396.9 kB / 0.9679 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.368e-05/0.5715, allocations: 115.9 kB / 0.968 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.209e-05/0.5716, allocations: 9.109 kB / 0.968 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.5717, allocations: 16.53 kB / 0.968 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.661e-05/0.5718, allocations: 9.516 kB / 0.968 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.5718, allocations: 6.984 kB / 0.968 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003098/0.5721, allocations: 302.3 kB / 0.9683 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5721, allocations: 3.938 kB / 0.9683 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002781/0.5724, allocations: 76.31 kB / 0.9684 GB, free: 13.75 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.0008335/0.5732, allocations: 0.9355 MB / 0.9693 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003262/0.5736, allocations: 155.1 kB / 0.9695 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.5736, allocations: 5 kB / 0.9695 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001707/0.5738, allocations: 85.53 kB / 0.9695 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005195/0.5743, allocations: 86.78 kB / 0.9696 GB, free: 12.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004379/0.5787, allocations: 3.729 MB / 0.9733 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.579, allocations: 0.7976 MB / 0.974 GB, free: 9.48 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000113/0.5791, allocations: 42.11 kB / 0.9741 GB, free: 9.461 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.5793, allocations: 115.5 kB / 0.9742 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.5793, allocations: 0 / 0.9742 GB, free: 9.363 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.572/2.151, allocations: 7.383 MB / 0.9814 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003136/2.151, allocations: 272.8 kB / 0.9817 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/3.934, allocations: 0 / 0.9817 GB, free: 4.066 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)