Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008261/0.000826, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.0008755/0.0008756, allocations: 173.7 kB / 16.27 MB, free: 6.66 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.355/1.355, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.675/2.675, allocations: 437.8 MB / 0.7121 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003803/0.0003802, allocations: 11.98 kB / 0.873 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6984/0.6989, allocations: 153.8 MB / 1.023 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003427/0.7023, allocations: 2.711 MB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003002/0.7054, allocations: 2.089 MB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003411/0.7058, allocations: 4 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.7074, allocations: 474.1 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004379/0.7078, allocations: 131.1 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001697/0.708, allocations: 51.95 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006241/0.7086, allocations: 465.8 kB / 1.029 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.7089, allocations: 124.4 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002498/0.7092, allocations: 139.3 kB / 1.029 GB, free: 9.641 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.7094, allocations: 163.2 kB / 1.029 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.872e-05/0.7095, allocations: 20 kB / 1.029 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.432e-05/0.7096, allocations: 27.94 kB / 1.029 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.7097, allocations: 75.67 kB / 1.029 GB, free: 9.359 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002125/0.7099, allocations: 228.6 kB / 1.03 GB, free: 9.129 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004481/0.7103, allocations: 0.5136 MB / 1.03 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.7104, allocations: 4 kB / 1.03 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.212e-06/0.7104, allocations: 0 / 1.03 GB, free: 8.609 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.7104, allocations: 0 / 1.03 GB, free: 8.609 MB / 0.7794 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.0009309/0.7113, allocations: 0.6424 MB / 1.031 GB, free: 7.914 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.7114, allocations: 8.031 kB / 1.031 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.036e-05/0.7114, allocations: 54.73 kB / 1.031 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.508e-05/0.7115, allocations: 48.38 kB / 1.031 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/0.7119, allocations: 374.1 kB / 1.031 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.712, allocations: 16.81 kB / 1.031 GB, free: 7.375 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.712, allocations: 24.38 kB / 1.031 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004045/0.7124, allocations: 211.1 kB / 1.032 GB, free: 7.141 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.7125, allocations: 4 kB / 1.032 GB, free: 7.137 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.7125, allocations: 8 kB / 1.032 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.7125, allocations: 4 kB / 1.032 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003902/0.7129, allocations: 173.7 kB / 1.032 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001127/0.714, allocations: 0.8701 MB / 1.033 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000305/0.7143, allocations: 174.5 kB / 1.033 GB, free: 5.836 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002165/0.7146, allocations: 119.1 kB / 1.033 GB, free: 5.719 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.7146, allocations: 4 kB / 1.033 GB, free: 5.715 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.7146, allocations: 30.56 kB / 1.033 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.282e-06/0.7146, allocations: 3.938 kB / 1.033 GB, free: 5.672 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18): time 0.0006262/0.7153, allocations: 279.2 kB / 1.033 GB, free: 5.395 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.924e-05/0.7153, allocations: 51.41 kB / 1.033 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.7158, allocations: 417.7 kB / 1.034 GB, free: 4.918 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.999e-05/0.7158, allocations: 33.7 kB / 1.034 GB, free: 4.879 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.7159, allocations: 204.2 kB / 1.034 GB, free: 4.676 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.99e-05/0.716, allocations: 67.09 kB / 1.034 GB, free: 4.609 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.099e-05/0.716, allocations: 17.72 kB / 1.034 GB, free: 4.586 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001327/0.7162, allocations: 350.8 kB / 1.034 GB, free: 4.234 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001487/0.7163, allocations: 55.97 kB / 1.034 GB, free: 4.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.7165, allocations: 67.97 kB / 1.034 GB, free: 4.113 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.7168, allocations: 142.4 kB / 1.034 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7168, allocations: 0 / 1.034 GB, free: 3.973 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003896/0.7172, allocations: 222.4 kB / 1.035 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.7172, allocations: 7.938 kB / 1.035 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.7172, allocations: 0 / 1.035 GB, free: 3.742 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.7173, allocations: 8 kB / 1.035 GB, free: 3.734 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.7175, allocations: 59.95 kB / 1.035 GB, free: 3.676 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/0.7175, allocations: 4 kB / 1.035 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.7177, allocations: 23.83 kB / 1.035 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.7177, allocations: 8 kB / 1.035 GB, free: 3.641 MB / 0.7794 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.0001584/0.7179, allocations: 161.8 kB / 1.035 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.777e-05/0.7179, allocations: 39.47 kB / 1.035 GB, free: 3.434 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.928e-05/0.718, allocations: 47.58 kB / 1.035 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.718, allocations: 0 / 1.035 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.718, allocations: 0 / 1.035 GB, free: 3.383 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.7181, allocations: 4 kB / 1.035 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003909/0.7185, allocations: 369.4 kB / 1.035 GB, free: 2.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.7185, allocations: 0 / 1.035 GB, free: 2.969 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002692/0.7187, allocations: 59.89 kB / 1.035 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.7187, allocations: 3.938 kB / 1.035 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.7188, allocations: 4 kB / 1.035 GB, free: 2.902 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.7188, allocations: 7.938 kB / 1.035 GB, free: 2.895 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.7188, allocations: 4 kB / 1.035 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.7194, allocations: 396.3 kB / 1.036 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.7195, allocations: 116.7 kB / 1.036 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.7196, allocations: 7.938 kB / 1.036 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.7197, allocations: 12 kB / 1.036 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.511e-05/0.7198, allocations: 15.97 kB / 1.036 GB, free: 2.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/0.7198, allocations: 4 kB / 1.036 GB, free: 2.316 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003096/0.7201, allocations: 299.2 kB / 1.036 GB, free: 2.023 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7201, allocations: 4.062 kB / 1.036 GB, free: 2.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000306/0.7204, allocations: 75.78 kB / 1.036 GB, free: 1.945 MB / 0.7794 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.0008885/0.7213, allocations: 0.9441 MB / 1.037 GB, free: 0.9727 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003567/0.7217, allocations: 158.6 kB / 1.037 GB, free: 0.8203 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.7217, allocations: 4 kB / 1.037 GB, free: 0.8164 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.7219, allocations: 79.91 kB / 1.038 GB, free: 0.7383 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006068/0.7225, allocations: 89.25 kB / 1.038 GB, free: 0.6562 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004643/0.7271, allocations: 3.75 MB / 1.041 GB, free: 12.83 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.7275, allocations: 0.7914 MB / 1.042 GB, free: 12.01 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001319/0.7276, allocations: 34.97 kB / 1.042 GB, free: 11.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.7278, allocations: 119.4 kB / 1.042 GB, free: 11.86 MB / 0.795 GB Notification: Performance of SimCode: time 7.21e-07/0.7278, allocations: 0 / 1.042 GB, free: 11.86 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01904/0.7469, allocations: 7.374 MB / 1.049 GB, free: 4.781 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.7471, allocations: 280.6 kB / 1.05 GB, free: 4.414 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.581, allocations: 0 / 1.05 GB, free: 4.414 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)