Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_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.001531/0.001531, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001981/0.001981, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.734/2.734, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.941/4.941, allocations: 409.2 MB / 0.6838 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006494/0.0006497, allocations: 8 kB / 0.8375 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629/1.63, allocations: 146.8 MB / 0.9809 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.006699/1.637, allocations: 3.276 MB / 0.9841 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005349/1.642, allocations: 2.189 MB / 0.9862 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008313/1.643, allocations: 12 kB / 0.9863 GB, free: 0.7422 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002438/1.646, allocations: 478.2 kB / 0.9867 GB, free: 280 kB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001148/1.647, allocations: 247.4 kB / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/1.647, allocations: 87.94 kB / 0.987 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001177/1.648, allocations: 0.5615 MB / 0.9876 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005699/1.649, allocations: 249.4 kB / 0.9878 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000564/1.65, allocations: 235.1 kB / 0.988 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003848/1.65, allocations: 262.8 kB / 0.9883 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.252e-05/1.65, allocations: 36 kB / 0.9883 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 9.758e-05/1.65, allocations: 36 kB / 0.9884 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001968/1.65, allocations: 123.6 kB / 0.9885 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002262/1.651, allocations: 161.3 kB / 0.9886 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008849/1.652, allocations: 0.7867 MB / 0.9894 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/1.652, allocations: 0 / 0.9894 GB, free: 13.51 MB / 0.7481 GB Notification: Performance of FrontEnd: time 3.086e-06/1.652, allocations: 4 kB / 0.9894 GB, free: 13.5 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.108e-05/1.652, allocations: 0 / 0.9894 GB, free: 13.5 MB / 0.7481 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.00245/1.654, allocations: 0.845 MB / 0.9902 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001107/1.654, allocations: 8.031 kB / 0.9902 GB, free: 12.6 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/1.654, allocations: 90.52 kB / 0.9903 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/1.655, allocations: 75.06 kB / 0.9904 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/1.656, allocations: 428.8 kB / 0.9908 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/1.656, allocations: 37 kB / 0.9908 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001384/1.656, allocations: 59.89 kB / 0.9909 GB, free: 11.87 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/1.658, allocations: 426.4 kB / 0.9913 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/1.658, allocations: 4 kB / 0.9913 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.542e-05/1.658, allocations: 23.94 kB / 0.9913 GB, free: 11.42 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.866e-05/1.658, allocations: 15.98 kB / 0.9913 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/1.659, allocations: 379.7 kB / 0.9917 GB, free: 11.04 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003089/1.662, allocations: 1.532 MB / 0.9932 GB, free: 9.434 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008472/1.663, allocations: 342.9 kB / 0.9935 GB, free: 9.086 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/1.663, allocations: 4 kB / 0.9935 GB, free: 9.082 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.353e-05/1.663, allocations: 38.5 kB / 0.9936 GB, free: 9.035 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=42): time 9.398e-06/1.663, allocations: 4 kB / 0.9936 GB, free: 9.031 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42): time 0.001719/1.665, allocations: 0.4943 MB / 0.9941 GB, free: 8.531 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/1.665, allocations: 55.41 kB / 0.9941 GB, free: 8.465 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/1.666, allocations: 485.9 kB / 0.9946 GB, free: 7.984 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/1.666, allocations: 37.69 kB / 0.9946 GB, free: 7.941 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/1.667, allocations: 272.4 kB / 0.9949 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/1.667, allocations: 149.8 kB / 0.995 GB, free: 7.523 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/1.667, allocations: 8 kB / 0.995 GB, free: 7.516 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000312/1.667, allocations: 362.7 kB / 0.9954 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004292/1.668, allocations: 124.7 kB / 0.9955 GB, free: 7.027 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004251/1.668, allocations: 137.4 kB / 0.9956 GB, free: 6.895 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005078/1.669, allocations: 146.4 kB / 0.9958 GB, free: 6.75 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/1.669, allocations: 0 / 0.9958 GB, free: 6.75 MB / 0.7481 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001263/1.67, allocations: 400.1 kB / 0.9961 GB, free: 6.355 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.365e-05/1.67, allocations: 4 kB / 0.9961 GB, free: 6.352 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/1.67, allocations: 0.7656 kB / 0.9961 GB, free: 6.352 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/1.67, allocations: 0 / 0.9961 GB, free: 6.352 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009419/1.671, allocations: 127.9 kB / 0.9963 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.07e-05/1.671, allocations: 8 kB / 0.9963 GB, free: 6.219 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006633/1.672, allocations: 55.56 kB / 0.9963 GB, free: 6.164 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/1.672, allocations: 4 kB / 0.9963 GB, free: 6.16 MB / 0.7481 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005893/1.673, allocations: 205.7 kB / 0.9965 GB, free: 5.949 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/1.673, allocations: 51.38 kB / 0.9966 GB, free: 5.898 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002073/1.673, allocations: 61.11 kB / 0.9966 GB, free: 5.836 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/1.673, allocations: 7.938 kB / 0.9966 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.673, allocations: 0 / 0.9966 GB, free: 5.828 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/1.673, allocations: 3.984 kB / 0.9966 GB, free: 5.824 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001292/1.674, allocations: 0.5828 MB / 0.9972 GB, free: 5.191 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/1.674, allocations: 0 / 0.9972 GB, free: 5.191 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009505/1.675, allocations: 131.9 kB / 0.9973 GB, free: 5.062 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/1.675, allocations: 0 / 0.9973 GB, free: 5.062 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.494e-05/1.675, allocations: 8 kB / 0.9973 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/1.676, allocations: 0 / 0.9973 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.676, allocations: 0 / 0.9973 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00191/1.677, allocations: 0.674 MB / 0.998 GB, free: 4.363 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002798/1.678, allocations: 132.5 kB / 0.9981 GB, free: 4.215 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/1.678, allocations: 8 kB / 0.9981 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004763/1.678, allocations: 27.89 kB / 0.9982 GB, free: 4.18 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/1.679, allocations: 31.73 kB / 0.9982 GB, free: 4.148 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.227e-05/1.679, allocations: 12 kB / 0.9982 GB, free: 4.137 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0007532/1.679, allocations: 347.1 kB / 0.9985 GB, free: 3.801 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.9e-07/1.679, allocations: 0 / 0.9985 GB, free: 3.801 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008514/1.68, allocations: 143.6 kB / 0.9987 GB, free: 3.66 MB / 0.7481 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 (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.002486/1.683, allocations: 1.227 MB / 0.9999 GB, free: 2.406 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001192/1.684, allocations: 331.4 kB / 1 GB, free: 2.082 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/1.684, allocations: 4 kB / 1 GB, free: 2.078 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0005591/1.685, allocations: 179.8 kB / 1 GB, free: 1.902 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/1.686, allocations: 122.1 kB / 1 GB, free: 1.781 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/1.696, allocations: 3.268 MB / 1.004 GB, free: 14.46 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008827/1.697, allocations: 0.8863 MB / 1.005 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004857/1.698, allocations: 60.31 kB / 1.005 GB, free: 13.48 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004526/1.698, allocations: 187.4 kB / 1.005 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of SimCode: time 2.375e-06/1.698, allocations: 0 / 1.005 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0447/1.743, allocations: 10.3 MB / 1.015 GB, free: 3.34 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004249/1.743, allocations: 261.7 kB / 1.015 GB, free: 3 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.29/5.033, allocations: 11.88 kB / 1.015 GB, free: 2.988 MB / 0.7637 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat does not exist to compare? outputFormat=mat