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.007356/0.007356, allocations: 106.2 kB / 15.74 MB, free: 6 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.001579/0.001579, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.164 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.302/2.302, allocations: 390.3 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 62.78 kB / 0.9504 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.2718, allocations: 140.4 MB / 1.088 GB, free: 2.102 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005081/0.2769, allocations: 4.149 MB / 1.092 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003091/0.28, allocations: 2.416 MB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.2803, allocations: 12 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.2817, allocations: 0.5403 MB / 1.094 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004/0.2821, allocations: 250 kB / 1.095 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002201/0.2823, allocations: 139.9 kB / 1.095 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007221/0.2831, allocations: 0.8137 MB / 1.096 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004275/0.2835, allocations: 326.5 kB / 1.096 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.2838, allocations: 294.9 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003292/0.2841, allocations: 322.6 kB / 1.097 GB, free: 8.824 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.404e-05/0.2842, allocations: 76 kB / 1.097 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.436e-05/0.2843, allocations: 72 kB / 1.097 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.2845, allocations: 167.5 kB / 1.097 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003266/0.2849, allocations: 394.2 kB / 1.097 GB, free: 8.129 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00088/0.2857, allocations: 0.9928 MB / 1.098 GB, free: 7.133 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2858, allocations: 4 kB / 1.098 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.244e-06/0.2858, allocations: 0 / 1.098 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.2858, allocations: 0 / 1.098 GB, free: 7.129 MB / 0.8575 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.001355/0.2871, allocations: 0.9463 MB / 1.099 GB, free: 6.129 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2872, allocations: 12.03 kB / 1.099 GB, free: 6.117 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001254/0.2873, allocations: 86.7 kB / 1.099 GB, free: 6.023 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.2874, allocations: 76.09 kB / 1.099 GB, free: 5.949 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006361/0.2881, allocations: 457.7 kB / 1.1 GB, free: 5.465 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.2881, allocations: 41.31 kB / 1.1 GB, free: 5.422 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.151e-05/0.2882, allocations: 56.22 kB / 1.1 GB, free: 5.367 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006898/0.2889, allocations: 426.6 kB / 1.1 GB, free: 4.941 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.2889, allocations: 0 / 1.1 GB, free: 4.941 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.459e-05/0.289, allocations: 20 kB / 1.1 GB, free: 4.922 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.289, allocations: 12 kB / 1.1 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007118/0.2897, allocations: 367.8 kB / 1.101 GB, free: 4.555 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.2917, allocations: 1.52 MB / 1.102 GB, free: 2.961 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005118/0.2922, allocations: 336.5 kB / 1.102 GB, free: 2.621 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004637/0.2927, allocations: 332.4 kB / 1.103 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.2927, allocations: 7.938 kB / 1.103 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.2928, allocations: 34.56 kB / 1.103 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=42): time 1.443e-06/0.2928, allocations: 0 / 1.103 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42): time 0.0009071/0.2937, allocations: 0.4891 MB / 1.103 GB, free: 1.746 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.2937, allocations: 63.39 kB / 1.103 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.2943, allocations: 493.9 kB / 1.104 GB, free: 1.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.2943, allocations: 33.7 kB / 1.104 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000175/0.2945, allocations: 276.4 kB / 1.104 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.2946, allocations: 145.8 kB / 1.104 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.962e-05/0.2947, allocations: 62.08 kB / 1.104 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000148/0.2948, allocations: 362.8 kB / 1.105 GB, free: 296 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.2951, allocations: 124.7 kB / 1.105 GB, free: 172 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.2953, allocations: 125.2 kB / 1.105 GB, free: 48 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.2958, allocations: 302 kB / 1.105 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2959, allocations: 0 / 1.105 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006291/0.2965, allocations: 392.4 kB / 1.106 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.2965, allocations: 8 kB / 1.106 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2965, allocations: 4 kB / 1.106 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.2965, allocations: 0 / 1.106 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004778/0.297, allocations: 123.9 kB / 1.106 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.297, allocations: 4 kB / 1.106 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.2973, allocations: 35.59 kB / 1.106 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.2973, allocations: 11.98 kB / 1.106 GB, free: 15.17 MB / 0.8731 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.2975, allocations: 197.7 kB / 1.106 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.27e-05/0.2976, allocations: 55.38 kB / 1.106 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.2977, allocations: 61.09 kB / 1.106 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2977, allocations: 4 kB / 1.106 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.2977, allocations: 0 / 1.106 GB, free: 14.85 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.2977, allocations: 11.98 kB / 1.106 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006754/0.2984, allocations: 0.5711 MB / 1.107 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.2984, allocations: 3.938 kB / 1.107 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004842/0.2989, allocations: 127.8 kB / 1.107 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2989, allocations: 8 kB / 1.107 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/0.299, allocations: 8 kB / 1.107 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.299, allocations: 0 / 1.107 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.299, allocations: 0 / 1.107 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009852/0.3, allocations: 0.6484 MB / 1.107 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3001, allocations: 148.3 kB / 1.107 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.639e-05/0.3002, allocations: 12 kB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.3004, allocations: 8 kB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.28e-05/0.3005, allocations: 27.95 kB / 1.108 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.3005, allocations: 12 kB / 1.108 GB, free: 13.19 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003684/0.3009, allocations: 347.1 kB / 1.108 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3009, allocations: 0 / 1.108 GB, free: 12.85 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000382/0.3013, allocations: 139.7 kB / 1.108 GB, free: 12.71 MB / 0.8731 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.001289/0.3026, allocations: 1.219 MB / 1.109 GB, free: 11.47 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005786/0.3031, allocations: 319.6 kB / 1.109 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3032, allocations: 0 / 1.109 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.3034, allocations: 180.2 kB / 1.11 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.3041, allocations: 124.3 kB / 1.11 GB, free: 10.86 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006017/0.3101, allocations: 4.844 MB / 1.115 GB, free: 5.934 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3105, allocations: 0.8703 MB / 1.115 GB, free: 5.039 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002016/0.3108, allocations: 56.38 kB / 1.115 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.311, allocations: 191.4 kB / 1.116 GB, free: 4.801 MB / 0.8731 GB Notification: Performance of SimCode: time 8.22e-07/0.311, allocations: 0 / 1.116 GB, free: 4.801 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03445/0.3455, allocations: 11.44 MB / 1.127 GB, free: 9.66 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.327/8.673, allocations: 10.08 kB / 1.127 GB, free: 9.656 MB / 0.8887 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)