Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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.0009156/0.0009156, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.005794/0.005794, allocations: 174.1 kB / 16.26 MB, free: 6.273 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.315/1.315, allocations: 223.2 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001732/0.001732, allocations: 278.1 kB / 291.7 MB, free: 1.887 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9155/0.9155, allocations: 169.5 MB / 0.5004 GB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004537/0.0004539, allocations: 16.05 kB / 0.5988 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1733, allocations: 88.55 MB / 0.6853 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003323/0.1767, allocations: 2.688 MB / 0.6879 GB, free: 12.22 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002828/0.1795, allocations: 2.073 MB / 0.6899 GB, free: 10.15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002884/0.1799, allocations: 8 kB / 0.6899 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001393/0.1813, allocations: 482.5 kB / 0.6904 GB, free: 9.672 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.1816, allocations: 125.7 kB / 0.6905 GB, free: 9.551 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001269/0.1817, allocations: 55.91 kB / 0.6906 GB, free: 9.496 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004428/0.1821, allocations: 468.4 kB / 0.691 GB, free: 9.039 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.1824, allocations: 129.9 kB / 0.6911 GB, free: 8.914 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001663/0.1825, allocations: 131.3 kB / 0.6913 GB, free: 8.785 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.1827, allocations: 175.7 kB / 0.6914 GB, free: 8.613 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.1828, allocations: 20 kB / 0.6914 GB, free: 8.594 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.458e-05/0.1828, allocations: 16.88 kB / 0.6915 GB, free: 8.578 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.1829, allocations: 79.62 kB / 0.6915 GB, free: 8.5 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.1831, allocations: 221.4 kB / 0.6917 GB, free: 8.277 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004314/0.1836, allocations: 0.5214 MB / 0.6923 GB, free: 7.754 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1836, allocations: 0.625 kB / 0.6923 GB, free: 7.754 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1836, allocations: 4 kB / 0.6923 GB, free: 7.75 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1836, allocations: 1.344 kB / 0.6923 GB, free: 7.75 MB / 494.1 MB 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.0008868/0.1845, allocations: 0.6431 MB / 0.6929 GB, free: 7.059 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1846, allocations: 8.031 kB / 0.6929 GB, free: 7.051 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.436e-05/0.1846, allocations: 58.73 kB / 0.693 GB, free: 6.984 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.343e-05/0.1847, allocations: 44.38 kB / 0.693 GB, free: 6.941 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004431/0.1851, allocations: 374.1 kB / 0.6934 GB, free: 6.539 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.802e-05/0.1852, allocations: 20.75 kB / 0.6934 GB, free: 6.52 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.1852, allocations: 20.38 kB / 0.6934 GB, free: 6.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.1856, allocations: 211.4 kB / 0.6936 GB, free: 6.289 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1856, allocations: 4 kB / 0.6936 GB, free: 6.285 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1857, allocations: 8 kB / 0.6936 GB, free: 6.277 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.1857, allocations: 4 kB / 0.6936 GB, free: 6.273 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000374/0.1861, allocations: 177.7 kB / 0.6938 GB, free: 6.102 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.1871, allocations: 0.8778 MB / 0.6946 GB, free: 5.148 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.1874, allocations: 164.9 kB / 0.6948 GB, free: 4.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.1877, allocations: 116.8 kB / 0.6949 GB, free: 4.863 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.1877, allocations: 7.938 kB / 0.6949 GB, free: 4.855 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.1877, allocations: 30.56 kB / 0.6949 GB, free: 4.816 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.192e-06/0.1877, allocations: 0 / 0.6949 GB, free: 4.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005817/0.1883, allocations: 279.5 kB / 0.6952 GB, free: 4.539 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.1883, allocations: 51.41 kB / 0.6953 GB, free: 4.477 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004398/0.1888, allocations: 417.7 kB / 0.6957 GB, free: 4.059 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.1888, allocations: 25.7 kB / 0.6957 GB, free: 4.027 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.189, allocations: 212.2 kB / 0.6959 GB, free: 3.812 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.189, allocations: 63.09 kB / 0.6959 GB, free: 3.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.1891, allocations: 21.7 kB / 0.696 GB, free: 3.723 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1892, allocations: 350.8 kB / 0.6963 GB, free: 3.371 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001449/0.1893, allocations: 59.92 kB / 0.6964 GB, free: 3.312 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.1895, allocations: 75.84 kB / 0.6964 GB, free: 3.238 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.1898, allocations: 142.4 kB / 0.6966 GB, free: 3.098 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1898, allocations: 0 / 0.6966 GB, free: 3.098 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003761/0.1902, allocations: 218.7 kB / 0.6968 GB, free: 2.879 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.1902, allocations: 4 kB / 0.6968 GB, free: 2.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/0.1902, allocations: 3.938 kB / 0.6968 GB, free: 2.871 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1902, allocations: 4 kB / 0.6968 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.1905, allocations: 59.91 kB / 0.6968 GB, free: 2.809 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1905, allocations: 4 kB / 0.6968 GB, free: 2.805 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.1907, allocations: 27.83 kB / 0.6969 GB, free: 2.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.26e-05/0.1907, allocations: 8 kB / 0.6969 GB, free: 2.77 MB / 494.1 MB 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.0001432/0.1908, allocations: 166.4 kB / 0.697 GB, free: 2.598 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.466e-05/0.1909, allocations: 35.53 kB / 0.6971 GB, free: 2.562 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.519e-05/0.191, allocations: 47.52 kB / 0.6971 GB, free: 2.512 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.191, allocations: 4 kB / 0.6971 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.191, allocations: 0 / 0.6971 GB, free: 2.508 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.191, allocations: 3.938 kB / 0.6971 GB, free: 2.504 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.1914, allocations: 373.3 kB / 0.6975 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1914, allocations: 0 / 0.6975 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002458/0.1916, allocations: 55.95 kB / 0.6975 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1917, allocations: 0 / 0.6975 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.1917, allocations: 7.938 kB / 0.6975 GB, free: 2.027 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1917, allocations: 4 kB / 0.6975 GB, free: 2.023 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1917, allocations: 4 kB / 0.6975 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005809/0.1923, allocations: 397.2 kB / 0.6979 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.24e-05/0.1924, allocations: 112.7 kB / 0.698 GB, free: 1.488 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.1924, allocations: 11.92 kB / 0.698 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1926, allocations: 12 kB / 0.6981 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.1927, allocations: 15.89 kB / 0.6981 GB, free: 1.449 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1927, allocations: 4 kB / 0.6981 GB, free: 1.445 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002965/0.193, allocations: 303.1 kB / 0.6984 GB, free: 1.152 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.193, allocations: 4.062 kB / 0.6984 GB, free: 1.148 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.1933, allocations: 71.84 kB / 0.6984 GB, free: 1.078 MB / 494.1 MB 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.0008317/0.1941, allocations: 0.9384 MB / 0.6994 GB, free: 116 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003542/0.1945, allocations: 161.5 kB / 0.6995 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1945, allocations: 0 / 0.6995 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001608/0.1946, allocations: 85.94 kB / 0.6996 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.1952, allocations: 89.44 kB / 0.6997 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0044/0.1996, allocations: 3.735 MB / 0.7033 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.2, allocations: 0.7953 MB / 0.7041 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001338/0.2001, allocations: 38.95 kB / 0.7041 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/0.2003, allocations: 115.4 kB / 0.7042 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/0.2003, allocations: 0 / 0.7042 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2343/0.4346, allocations: 7.391 MB / 0.7115 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002564/0.4349, allocations: 294.5 kB / 0.7117 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/2.236, allocations: 3.562 kB / 0.7117 GB, free: 3.551 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)