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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006154/0.006154, allocations: 100.5 kB / 15.73 MB, free: 6.02 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.001289/0.001289, allocations: 189.7 kB / 16.67 MB, free: 5.938 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002431/0.002431, allocations: 290 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9907/0.9907, allocations: 169.3 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002515/0.002515, allocations: 91.86 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3954/0.3979, allocations: 86.98 MB / 0.766 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005436/0.4034, allocations: 4.132 MB / 0.77 GB, free: 15.73 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003577/0.407, allocations: 2.41 MB / 0.7723 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002429/0.4073, allocations: 8 kB / 0.7724 GB, free: 13.3 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.4088, allocations: 0.5398 MB / 0.7729 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0004413/0.4092, allocations: 246 kB / 0.7731 GB, free: 12.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.4095, allocations: 135.9 kB / 0.7732 GB, free: 12.38 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008086/0.4103, allocations: 0.8137 MB / 0.774 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000461/0.4108, allocations: 336.3 kB / 0.7744 GB, free: 11.23 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003119/0.4111, allocations: 287 kB / 0.7746 GB, free: 10.95 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.4115, allocations: 334.6 kB / 0.775 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.038e-05/0.4116, allocations: 72 kB / 0.775 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.4117, allocations: 76 kB / 0.7751 GB, free: 10.48 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001873/0.4119, allocations: 175.4 kB / 0.7753 GB, free: 10.31 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003512/0.4122, allocations: 382.3 kB / 0.7756 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0009894/0.4132, allocations: 1.004 MB / 0.7766 GB, free: 8.926 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4133, allocations: 0 / 0.7766 GB, free: 8.926 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.573e-06/0.4133, allocations: 0 / 0.7766 GB, free: 8.926 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.416e-06/0.4133, allocations: 0 / 0.7766 GB, free: 8.926 MB / 0.545 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.001419/0.4147, allocations: 0.9613 MB / 0.7775 GB, free: 7.91 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.4147, allocations: 12.03 kB / 0.7776 GB, free: 7.898 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000102/0.4149, allocations: 90.7 kB / 0.7776 GB, free: 7.801 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.415, allocations: 80.47 kB / 0.7777 GB, free: 7.723 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006446/0.4156, allocations: 466 kB / 0.7782 GB, free: 7.234 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.051e-05/0.4157, allocations: 37.38 kB / 0.7782 GB, free: 7.195 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.609e-05/0.4157, allocations: 52.36 kB / 0.7782 GB, free: 7.145 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007381/0.4165, allocations: 426.6 kB / 0.7787 GB, free: 6.723 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.4165, allocations: 7.891 kB / 0.7787 GB, free: 6.715 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.4166, allocations: 20 kB / 0.7787 GB, free: 6.695 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.4166, allocations: 12 kB / 0.7787 GB, free: 6.684 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007028/0.4173, allocations: 375.7 kB / 0.7791 GB, free: 6.316 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.4194, allocations: 1.509 MB / 0.7805 GB, free: 4.734 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.4199, allocations: 346.9 kB / 0.7809 GB, free: 4.383 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005002/0.4204, allocations: 322.5 kB / 0.7812 GB, free: 4.066 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.493e-05/0.4205, allocations: 15.88 kB / 0.7812 GB, free: 4.051 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.4205, allocations: 30.56 kB / 0.7812 GB, free: 4.012 MB / 0.545 GB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.4205, allocations: 0 / 0.7812 GB, free: 4.012 MB / 0.545 GB Notification: Performance of matching and sorting (n=42): time 0.0009604/0.4215, allocations: 0.4934 MB / 0.7817 GB, free: 3.512 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.4216, allocations: 59.39 kB / 0.7817 GB, free: 3.441 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005752/0.4221, allocations: 485.9 kB / 0.7822 GB, free: 2.961 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.4222, allocations: 33.7 kB / 0.7822 GB, free: 2.922 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.4224, allocations: 285.4 kB / 0.7825 GB, free: 2.641 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.4225, allocations: 150.7 kB / 0.7827 GB, free: 2.492 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/0.4226, allocations: 58.08 kB / 0.7827 GB, free: 2.426 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.4228, allocations: 362.8 kB / 0.7831 GB, free: 2.062 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002557/0.4231, allocations: 128.6 kB / 0.7832 GB, free: 1.938 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002337/0.4233, allocations: 125.5 kB / 0.7833 GB, free: 1.816 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005296/0.4239, allocations: 298 kB / 0.7836 GB, free: 1.523 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.4239, allocations: 3.938 kB / 0.7836 GB, free: 1.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006744/0.4246, allocations: 404.5 kB / 0.784 GB, free: 1.117 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.4246, allocations: 4 kB / 0.784 GB, free: 1.113 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.4246, allocations: 0 / 0.784 GB, free: 1.113 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.4246, allocations: 4 kB / 0.784 GB, free: 1.109 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.4251, allocations: 123.9 kB / 0.7841 GB, free: 0.9883 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.4251, allocations: 3.938 kB / 0.7841 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002054/0.4253, allocations: 43.66 kB / 0.7841 GB, free: 0.9414 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.4254, allocations: 12 kB / 0.7842 GB, free: 0.9297 MB / 0.545 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.0002188/0.4256, allocations: 196.2 kB / 0.7843 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.94e-05/0.4257, allocations: 55.61 kB / 0.7844 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.4258, allocations: 65.08 kB / 0.7845 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.4258, allocations: 4 kB / 0.7845 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.4258, allocations: 0 / 0.7845 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.4258, allocations: 3.984 kB / 0.7845 GB, free: 0.6016 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007012/0.4265, allocations: 0.5752 MB / 0.785 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4265, allocations: 3.938 kB / 0.785 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005169/0.4271, allocations: 131.8 kB / 0.7852 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.4271, allocations: 4 kB / 0.7852 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.4271, allocations: 8 kB / 0.7852 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.4271, allocations: 4 kB / 0.7852 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4271, allocations: 3.938 kB / 0.7852 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.4282, allocations: 0.6521 MB / 0.7858 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.4283, allocations: 144.6 kB / 0.786 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/0.4284, allocations: 8 kB / 0.786 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002241/0.4286, allocations: 12 kB / 0.786 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.036e-05/0.4287, allocations: 31.89 kB / 0.786 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.508e-05/0.4287, allocations: 4 kB / 0.786 GB, free: 14.94 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004008/0.4291, allocations: 355.1 kB / 0.7863 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4291, allocations: 0 / 0.7863 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004783/0.4296, allocations: 139.7 kB / 0.7865 GB, free: 14.46 MB / 0.5606 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.00135/0.4309, allocations: 1.208 MB / 0.7877 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005994/0.4315, allocations: 328.3 kB / 0.788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4316, allocations: 0 / 0.788 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003112/0.4319, allocations: 183.6 kB / 0.7881 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007042/0.4326, allocations: 124.8 kB / 0.7883 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006795/0.4394, allocations: 4.878 MB / 0.793 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005481/0.44, allocations: 0.8704 MB / 0.7939 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002048/0.4402, allocations: 52.39 kB / 0.7939 GB, free: 6.699 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/0.4405, allocations: 187.4 kB / 0.7941 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/0.4405, allocations: 0 / 0.7941 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04002/0.4805, allocations: 11.47 MB / 0.8053 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.057/9.538, allocations: 5.125 kB / 0.8053 GB, free: 11.38 MB / 0.5762 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/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)