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.007297/0.007297, allocations: 97.78 kB / 15.73 MB, free: 5.996 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.001983/0.001983, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002429/0.002429, allocations: 279 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9908/0.9908, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002747/0.002747, allocations: 99.94 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1603, allocations: 86.98 MB / 0.766 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004543/0.1649, allocations: 3.01 MB / 0.7689 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00312/0.168, allocations: 2.141 MB / 0.771 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002729/0.1683, allocations: 8 kB / 0.771 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001519/0.1699, allocations: 0.5055 MB / 0.7715 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003796/0.1703, allocations: 146.8 kB / 0.7716 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000137/0.1704, allocations: 59.94 kB / 0.7717 GB, free: 2.973 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004983/0.1709, allocations: 456.2 kB / 0.7721 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1712, allocations: 151.2 kB / 0.7723 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.1714, allocations: 159.4 kB / 0.7724 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.1716, allocations: 175.2 kB / 0.7726 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 5.125e-05/0.1717, allocations: 35.94 kB / 0.7726 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.437e-05/0.1718, allocations: 36 kB / 0.7727 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.1719, allocations: 95.67 kB / 0.7728 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002048/0.1721, allocations: 218.9 kB / 0.773 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005591/0.1727, allocations: 0.5562 MB / 0.7735 GB, free: 1.109 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1727, allocations: 8 kB / 0.7735 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.082e-06/0.1727, allocations: 0 / 0.7735 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.212e-05/0.1727, allocations: 0 / 0.7735 GB, free: 1.102 MB / 0.5606 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.001035/0.1737, allocations: 0.716 MB / 0.7742 GB, free: 344 kB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1738, allocations: 8.031 kB / 0.7742 GB, free: 336 kB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.047e-05/0.1738, allocations: 62.72 kB / 0.7743 GB, free: 264 kB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.21e-05/0.1739, allocations: 44.66 kB / 0.7743 GB, free: 220 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2771/0.451, allocations: 372.2 kB / 0.7747 GB, free: 15 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.4511, allocations: 17.66 kB / 0.7747 GB, free: 15 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.264e-05/0.4511, allocations: 21.84 kB / 0.7747 GB, free: 15 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.4516, allocations: 200.7 kB / 0.7749 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.4516, allocations: 3.812 kB / 0.7749 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.4517, allocations: 9.219 kB / 0.7749 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.4517, allocations: 5 kB / 0.7749 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000408/0.4521, allocations: 166.4 kB / 0.7751 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.4533, allocations: 0.8644 MB / 0.7759 GB, free: 14.56 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002879/0.4536, allocations: 153 kB / 0.7761 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/0.4538, allocations: 116.6 kB / 0.7762 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.4538, allocations: 3.531 kB / 0.7762 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.4538, allocations: 33.45 kB / 0.7762 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.913e-06/0.4538, allocations: 2.312 kB / 0.7762 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0005967/0.4544, allocations: 255.5 kB / 0.7765 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.471e-05/0.4545, allocations: 53.22 kB / 0.7765 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004638/0.4549, allocations: 420.3 kB / 0.7769 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.455, allocations: 28.98 kB / 0.7769 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/0.4551, allocations: 208.8 kB / 0.7771 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.144e-05/0.4551, allocations: 68.22 kB / 0.7772 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.814e-05/0.4552, allocations: 34.64 kB / 0.7772 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.207e-05/0.4553, allocations: 348.5 kB / 0.7776 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.4554, allocations: 58.12 kB / 0.7776 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.4556, allocations: 61.78 kB / 0.7777 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002795/0.4559, allocations: 133 kB / 0.7778 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4559, allocations: 1.422 kB / 0.7778 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003595/0.4562, allocations: 214.1 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.4563, allocations: 10.97 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.4563, allocations: 0 / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.4563, allocations: 1.125 kB / 0.778 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002457/0.4566, allocations: 51.91 kB / 0.7781 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.4566, allocations: 1.344 kB / 0.7781 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.4567, allocations: 24.97 kB / 0.7781 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.4567, allocations: 5.531 kB / 0.7781 GB, free: 13.37 MB / 0.5606 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.0001147/0.4568, allocations: 166.5 kB / 0.7783 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.4569, allocations: 36.08 kB / 0.7783 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.819e-05/0.457, allocations: 42.03 kB / 0.7783 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.457, allocations: 1.438 kB / 0.7783 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.457, allocations: 6.328 kB / 0.7784 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.457, allocations: 9.047 kB / 0.7784 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003766/0.4574, allocations: 378 kB / 0.7787 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.4574, allocations: 0 / 0.7787 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002477/0.4577, allocations: 55.14 kB / 0.7788 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.4577, allocations: 2.406 kB / 0.7788 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.4577, allocations: 5.469 kB / 0.7788 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.4577, allocations: 1.453 kB / 0.7788 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.4577, allocations: 1.438 kB / 0.7788 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005352/0.4583, allocations: 376.1 kB / 0.7791 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.351e-05/0.4583, allocations: 123.8 kB / 0.7793 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.4584, allocations: 5.188 kB / 0.7793 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.4585, allocations: 7.094 kB / 0.7793 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.4586, allocations: 15.8 kB / 0.7793 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.237e-06/0.4586, allocations: 7.344 kB / 0.7793 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003016/0.4589, allocations: 304.9 kB / 0.7796 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4589, allocations: 0 / 0.7796 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003002/0.4592, allocations: 76.98 kB / 0.7797 GB, free: 12.37 MB / 0.5606 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.0007046/0.4599, allocations: 0.9218 MB / 0.7806 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003491/0.4603, allocations: 149.5 kB / 0.7807 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4603, allocations: 0.7188 kB / 0.7807 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001542/0.4605, allocations: 78.22 kB / 0.7808 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005382/0.461, allocations: 94.75 kB / 0.7809 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.4649, allocations: 3.497 MB / 0.7843 GB, free: 9.465 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.4651, allocations: 0.791 MB / 0.7851 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000145/0.4652, allocations: 40.61 kB / 0.7851 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.4654, allocations: 117.6 kB / 0.7852 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of SimCode: time 6.11e-07/0.4654, allocations: 5.125 kB / 0.7852 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03051/0.4959, allocations: 8.001 MB / 0.793 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.295/8.791, allocations: 10.39 kB / 0.793 GB, free: 7.859 MB / 0.5606 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)