Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.9591/0.9591, allocations: 141.8 MB / 149.3 MB, free: 9.172 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 176.8 kB / 182.2 MB, free: 9.434 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.5 MB / 436.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009747/0.0009752, allocations: 97.55 kB / 0.5074 GB, free: 10.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001885/0.001885, allocations: 272.7 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.186e-05/2.19e-05, allocations: 8 kB / 0.6767 GB, free: 12.7 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4999/0.4999, allocations: 82.76 MB / 0.7575 GB, free: 31.92 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1633/0.6633, allocations: 118.6 MB / 0.8733 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.6636, allocations: 107.9 kB / 0.8734 GB, free: 9.062 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05755/0.7212, allocations: 21.94 MB / 0.8948 GB, free: 3.055 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7213, allocations: 0 / 0.8948 GB, free: 3.055 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.066e-05/0.7213, allocations: 12 kB / 0.8949 GB, free: 3.043 MB / 0.5573 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.001301/0.7226, allocations: 0.7556 MB / 0.8956 GB, free: 2.238 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/0.7227, allocations: 12.03 kB / 0.8956 GB, free: 2.227 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.7228, allocations: 75.16 kB / 0.8957 GB, free: 2.152 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007141/0.7235, allocations: 438.9 kB / 0.8961 GB, free: 1.68 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.7236, allocations: 23.94 kB / 0.8961 GB, free: 1.656 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.657e-05/0.7237, allocations: 28 kB / 0.8961 GB, free: 1.629 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006088/0.7243, allocations: 306.5 kB / 0.8964 GB, free: 1.332 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006047/0.7249, allocations: 332 kB / 0.8968 GB, free: 1 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.897e-05/0.7249, allocations: 0 / 0.8968 GB, free: 1 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.725, allocations: 3.953 kB / 0.8968 GB, free: 0.9961 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.725, allocations: 12 kB / 0.8968 GB, free: 0.9844 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4732/1.198, allocations: 1.423 MB / 0.8982 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/1.199, allocations: 309.3 kB / 0.8985 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009044/1.2, allocations: 279.1 kB / 0.8987 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 5.777e-05/1.2, allocations: 3.609 kB / 0.8987 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.234e-05/1.2, allocations: 38.44 kB / 0.8988 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 8.105e-06/1.201, allocations: 1.359 kB / 0.8988 GB, free: 126.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=42): time 0.001327/1.202, allocations: 313.8 kB / 0.8991 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/1.202, allocations: 55.5 kB / 0.8991 GB, free: 126.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/1.203, allocations: 374.1 kB / 0.8995 GB, free: 126 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/1.203, allocations: 25.7 kB / 0.8995 GB, free: 125.9 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003791/1.204, allocations: 276.2 kB / 0.8998 GB, free: 125.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/1.204, allocations: 143.5 kB / 0.8999 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.503e-05/1.204, allocations: 0 / 0.8999 GB, free: 125.7 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002098/1.204, allocations: 357.4 kB / 0.9002 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/1.204, allocations: 97.66 kB / 0.9003 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002538/1.205, allocations: 103.2 kB / 0.9004 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003234/1.205, allocations: 114.4 kB / 0.9005 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.205, allocations: 0 / 0.9005 GB, free: 125.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009335/1.206, allocations: 342.6 kB / 0.9009 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.105e-05/1.206, allocations: 6 kB / 0.9009 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/1.206, allocations: 0.6875 kB / 0.9009 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.527e-05/1.206, allocations: 1.75 kB / 0.9009 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008009/1.207, allocations: 126.1 kB / 0.901 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.338e-05/1.207, allocations: 3.312 kB / 0.901 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005832/1.207, allocations: 45.12 kB / 0.901 GB, free: 125.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.765e-05/1.208, allocations: 9.75 kB / 0.901 GB, free: 125.3 MB / 0.5573 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001629/1.208, allocations: 109.3 kB / 0.9011 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001063/1.209, allocations: 320 kB / 0.9015 GB, free: 125.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/1.209, allocations: 45.53 kB / 0.9015 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002149/1.209, allocations: 54.83 kB / 0.9015 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/1.209, allocations: 5.938 kB / 0.9016 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.785e-05/1.209, allocations: 0.7031 kB / 0.9016 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-05/1.209, allocations: 2.875 kB / 0.9016 GB, free: 125.1 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/1.211, allocations: 0.493 MB / 0.902 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/1.211, allocations: 0.75 kB / 0.902 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007514/1.212, allocations: 133.5 kB / 0.9022 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.861e-05/1.212, allocations: 2.188 kB / 0.9022 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.77e-05/1.212, allocations: 2.016 kB / 0.9022 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.11e-05/1.212, allocations: 1.688 kB / 0.9022 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.366e-06/1.212, allocations: 2.625 kB / 0.9022 GB, free: 125 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/1.213, allocations: 0.5737 MB / 0.9027 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/1.214, allocations: 130.8 kB / 0.9029 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.643e-05/1.214, allocations: 10.55 kB / 0.9029 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/1.214, allocations: 16.05 kB / 0.9029 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/1.214, allocations: 26.94 kB / 0.9029 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.358e-05/1.214, allocations: 8.062 kB / 0.9029 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006715/1.215, allocations: 299.4 kB / 0.9032 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/1.215, allocations: 3.562 kB / 0.9032 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008812/1.216, allocations: 141 kB / 0.9033 GB, free: 124.6 MB / 0.5573 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 () * 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 (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.002279/1.218, allocations: 1.28 MB / 0.9046 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007126/1.219, allocations: 271.6 kB / 0.9049 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/1.219, allocations: 4 kB / 0.9049 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002707/1.219, allocations: 154.3 kB / 0.905 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/1.22, allocations: 82.38 kB / 0.9051 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/1.222, allocations: 0.9747 MB / 0.906 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005109/1.223, allocations: 0.8788 MB / 0.9069 GB, free: 122.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002426/1.223, allocations: 47.27 kB / 0.9069 GB, free: 122.8 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002719/1.223, allocations: 199.7 kB / 0.9071 GB, free: 122.8 MB / 0.5573 GB Notification: Performance of SimCode: time 5.71e-07/1.223, allocations: 0 / 0.9071 GB, free: 122.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03168/1.255, allocations: 9.354 MB / 0.9163 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/1.255, allocations: 226.5 kB / 0.9165 GB, free: 122 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/3.596, allocations: 4 kB / 0.9165 GB, free: 122 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)