Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",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.001231/0.001235, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.001241/0.001241, allocations: 192.4 kB / 16.25 MB, free: 6.629 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.377/1.377, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.375/2.375, allocations: 390.2 MB / 0.6644 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6385/0.6398, allocations: 140.4 MB / 0.9493 GB, free: 9.129 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004353/0.6442, allocations: 4.172 MB / 0.9533 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002643/0.6469, allocations: 2.372 MB / 0.9557 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.6471, allocations: 9.188 kB / 0.9557 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.6484, allocations: 0.4994 MB / 0.9562 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.6487, allocations: 219.5 kB / 0.9564 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001757/0.6489, allocations: 127.3 kB / 0.9565 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006417/0.6496, allocations: 0.8092 MB / 0.9573 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.65, allocations: 324.9 kB / 0.9576 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.6503, allocations: 293.1 kB / 0.9579 GB, free: 2.457 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002664/0.6505, allocations: 329.6 kB / 0.9582 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.857e-05/0.6506, allocations: 74.25 kB / 0.9583 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.6507, allocations: 74.25 kB / 0.9583 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.6509, allocations: 174.6 kB / 0.9585 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002642/0.6511, allocations: 383.2 kB / 0.9589 GB, free: 1.836 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006557/0.6518, allocations: 0.9877 MB / 0.9598 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.6518, allocations: 8.625 kB / 0.9598 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.513e-06/0.6518, allocations: 0 / 0.9598 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.6518, allocations: 4 kB / 0.9598 GB, free: 1.062 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001189/0.653, allocations: 0.9489 MB / 0.9608 GB, free: 296 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.6531, allocations: 8.969 kB / 0.9608 GB, free: 296 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.707e-05/0.6532, allocations: 86.7 kB / 0.9609 GB, free: 216 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.6533, allocations: 75.97 kB / 0.9609 GB, free: 176 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005571/0.6538, allocations: 453.7 kB / 0.9614 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.815e-05/0.6539, allocations: 36.38 kB / 0.9614 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.033e-05/0.654, allocations: 52.31 kB / 0.9614 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007528/0.6547, allocations: 427.7 kB / 0.9618 GB, free: 15.49 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.6548, allocations: 3.984 kB / 0.9619 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.894e-05/0.6548, allocations: 19.62 kB / 0.9619 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.6548, allocations: 12.31 kB / 0.9619 GB, free: 15.47 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006712/0.6555, allocations: 368 kB / 0.9622 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00192/0.6574, allocations: 1.54 MB / 0.9637 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005072/0.6579, allocations: 332.1 kB / 0.9641 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004763/0.6584, allocations: 321.2 kB / 0.9644 GB, free: 13.76 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.107e-05/0.6585, allocations: 11.81 kB / 0.9644 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.623e-05/0.6585, allocations: 37.22 kB / 0.9644 GB, free: 13.71 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.523e-06/0.6585, allocations: 3.938 kB / 0.9644 GB, free: 13.7 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.0009518/0.6595, allocations: 489.6 kB / 0.9649 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.6595, allocations: 55.06 kB / 0.9649 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005635/0.6601, allocations: 490.9 kB / 0.9654 GB, free: 13.11 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.6601, allocations: 34.92 kB / 0.9654 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.6603, allocations: 275.6 kB / 0.9657 GB, free: 12.83 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.6604, allocations: 151.3 kB / 0.9658 GB, free: 12.7 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.531e-05/0.6605, allocations: 56.08 kB / 0.9659 GB, free: 12.65 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.6607, allocations: 363.6 kB / 0.9662 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.6609, allocations: 117.5 kB / 0.9664 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.6612, allocations: 133 kB / 0.9665 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.6617, allocations: 299.8 kB / 0.9668 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.6617, allocations: 3.938 kB / 0.9668 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006558/0.6623, allocations: 392.4 kB / 0.9671 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.6624, allocations: 7.156 kB / 0.9671 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.6624, allocations: 5.016 kB / 0.9672 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.6624, allocations: 1.688 kB / 0.9672 GB, free: 11.81 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000499/0.6629, allocations: 128.2 kB / 0.9673 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.6629, allocations: 1.375 kB / 0.9673 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002835/0.6632, allocations: 45.36 kB / 0.9673 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.017e-05/0.6632, allocations: 8.062 kB / 0.9673 GB, free: 11.75 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 (46): * Single equations (assignments): 46 * 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.0002007/0.6635, allocations: 204.3 kB / 0.9675 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.011e-05/0.6635, allocations: 59.66 kB / 0.9676 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.6637, allocations: 63.12 kB / 0.9676 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.6637, allocations: 4.469 kB / 0.9676 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.6637, allocations: 0 / 0.9676 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.6637, allocations: 0 / 0.9676 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006279/0.6643, allocations: 0.5829 MB / 0.9682 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.6643, allocations: 3.938 kB / 0.9682 GB, free: 11.01 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005025/0.6648, allocations: 127.4 kB / 0.9683 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.6649, allocations: 6.547 kB / 0.9683 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.6649, allocations: 6.375 kB / 0.9684 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.17e-06/0.6649, allocations: 5.359 kB / 0.9684 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.6649, allocations: 0 / 0.9684 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009525/0.6659, allocations: 0.6467 MB / 0.969 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.666, allocations: 139.4 kB / 0.9691 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.61e-05/0.6661, allocations: 14.61 kB / 0.9691 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.6663, allocations: 17.52 kB / 0.9692 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.6664, allocations: 30.59 kB / 0.9692 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.478e-05/0.6664, allocations: 12.09 kB / 0.9692 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003609/0.6668, allocations: 346.3 kB / 0.9695 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6668, allocations: 4 kB / 0.9695 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004397/0.6672, allocations: 149.1 kB / 0.9697 GB, free: 10.15 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.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 (42): * Single equations (assignments): 42 * 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.001229/0.6685, allocations: 1.214 MB / 0.9709 GB, free: 9.199 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006901/0.6692, allocations: 342.5 kB / 0.9712 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.6692, allocations: 0 / 0.9712 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002907/0.6695, allocations: 180.4 kB / 0.9714 GB, free: 8.965 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007353/0.6702, allocations: 125.2 kB / 0.9715 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006852/0.6771, allocations: 5.227 MB / 0.9766 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.6775, allocations: 0.866 MB / 0.9774 GB, free: 4.637 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002502/0.6778, allocations: 53.86 kB / 0.9775 GB, free: 4.609 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002464/0.6781, allocations: 191.8 kB / 0.9777 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of SimCode: time 1.202e-06/0.6781, allocations: 0 / 0.9777 GB, free: 4.449 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.522/2.2, allocations: 11.07 MB / 0.9885 GB, free: 9.75 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00027/2.2, allocations: 276.4 kB / 0.9887 GB, free: 9.391 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.294/4.494, allocations: 0 / 0.9887 GB, free: 9.391 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)