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.001082/0.001082, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001457/0.001457, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 223.2 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.488/2.488, allocations: 409.4 MB / 0.684 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003814/0.0003815, allocations: 11.94 kB / 0.8378 GB, free: 6.461 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7386/0.739, allocations: 146.8 MB / 0.9812 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004106/0.7432, allocations: 3.588 MB / 0.9847 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0034/0.7466, allocations: 2.215 MB / 0.9868 GB, free: 436 kB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004797/0.7471, allocations: 12 kB / 0.9869 GB, free: 424 kB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001463/0.7486, allocations: 469.8 kB / 0.9873 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0006384/0.7493, allocations: 202.5 kB / 0.9875 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.7495, allocations: 83.92 kB / 0.9876 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0009452/0.7505, allocations: 0.7552 MB / 0.9883 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004328/0.7509, allocations: 241.4 kB / 0.9885 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.7514, allocations: 239 kB / 0.9888 GB, free: 14.44 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004229/0.7518, allocations: 270.8 kB / 0.989 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 8.086e-05/0.7519, allocations: 36 kB / 0.9891 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.752, allocations: 32 kB / 0.9891 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.7522, allocations: 127.5 kB / 0.9892 GB, free: 13.98 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001998/0.7524, allocations: 165.3 kB / 0.9894 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0006525/0.753, allocations: 0.7829 MB / 0.9901 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.753, allocations: 4 kB / 0.9901 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.884e-06/0.7531, allocations: 0 / 0.9901 GB, free: 13.03 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.844e-05/0.7531, allocations: 0 / 0.9901 GB, free: 13.03 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.001333/0.7544, allocations: 0.845 MB / 0.991 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.7545, allocations: 8.031 kB / 0.991 GB, free: 12.12 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.7546, allocations: 90.52 kB / 0.9911 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.7547, allocations: 75.06 kB / 0.9911 GB, free: 11.95 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006258/0.7554, allocations: 440.8 kB / 0.9916 GB, free: 11.48 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/0.7554, allocations: 41 kB / 0.9916 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/0.7555, allocations: 51.91 kB / 0.9916 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007727/0.7563, allocations: 434.3 kB / 0.9921 GB, free: 10.96 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.7563, allocations: 8 kB / 0.9921 GB, free: 10.95 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.7563, allocations: 23.98 kB / 0.9921 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.7564, allocations: 12 kB / 0.9921 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006937/0.7571, allocations: 371.8 kB / 0.9925 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002015/0.7591, allocations: 1.535 MB / 0.994 GB, free: 8.945 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005312/0.7596, allocations: 338.9 kB / 0.9943 GB, free: 8.602 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004848/0.7601, allocations: 356.7 kB / 0.9946 GB, free: 8.25 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.592e-05/0.7602, allocations: 4 kB / 0.9946 GB, free: 8.246 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.7602, allocations: 35.25 kB / 0.9947 GB, free: 8.203 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=42): time 2.054e-06/0.7602, allocations: 0 / 0.9947 GB, free: 8.203 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42): time 0.000926/0.7611, allocations: 0.5022 MB / 0.9951 GB, free: 7.695 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.7612, allocations: 63.3 kB / 0.9952 GB, free: 7.621 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005377/0.7617, allocations: 489.9 kB / 0.9957 GB, free: 7.137 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.7618, allocations: 29.7 kB / 0.9957 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.762, allocations: 276.4 kB / 0.996 GB, free: 6.828 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.7621, allocations: 145.8 kB / 0.9961 GB, free: 6.684 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.947e-05/0.7621, allocations: 8 kB / 0.9961 GB, free: 6.676 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.7622, allocations: 366.7 kB / 0.9965 GB, free: 6.309 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.7625, allocations: 120.7 kB / 0.9966 GB, free: 6.188 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.7627, allocations: 129.4 kB / 0.9967 GB, free: 6.062 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.763, allocations: 150.4 kB / 0.9968 GB, free: 5.914 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.763, allocations: 0 / 0.9968 GB, free: 5.914 MB / 0.7481 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000654/0.7637, allocations: 400.1 kB / 0.9972 GB, free: 5.52 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.7637, allocations: 4 kB / 0.9972 GB, free: 5.516 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.7637, allocations: 4 kB / 0.9972 GB, free: 5.512 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.7637, allocations: 4 kB / 0.9972 GB, free: 5.508 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000501/0.7642, allocations: 131.8 kB / 0.9974 GB, free: 5.379 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.759e-06/0.7643, allocations: 0 / 0.9974 GB, free: 5.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002765/0.7645, allocations: 55.61 kB / 0.9974 GB, free: 5.324 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.094e-05/0.7646, allocations: 12 kB / 0.9974 GB, free: 5.312 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.0002477/0.7648, allocations: 201.8 kB / 0.9976 GB, free: 5.105 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.78e-05/0.7649, allocations: 51.34 kB / 0.9977 GB, free: 5.055 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/0.765, allocations: 53.11 kB / 0.9977 GB, free: 5 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.765, allocations: 7.984 kB / 0.9977 GB, free: 4.992 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.7651, allocations: 0 / 0.9977 GB, free: 4.992 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.7651, allocations: 8 kB / 0.9977 GB, free: 4.984 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006546/0.7657, allocations: 0.5788 MB / 0.9983 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.7657, allocations: 0 / 0.9983 GB, free: 4.355 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/0.7663, allocations: 131.8 kB / 0.9984 GB, free: 4.227 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.7663, allocations: 4 kB / 0.9984 GB, free: 4.223 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.7663, allocations: 8 kB / 0.9984 GB, free: 4.215 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.7663, allocations: 4 kB / 0.9984 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.7663, allocations: 0 / 0.9984 GB, free: 4.211 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009669/0.7673, allocations: 0.6738 MB / 0.9991 GB, free: 3.52 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.7674, allocations: 140.4 kB / 0.9992 GB, free: 3.363 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.6e-05/0.7675, allocations: 4 kB / 0.9992 GB, free: 3.359 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002377/0.7678, allocations: 23.98 kB / 0.9993 GB, free: 3.336 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.311e-05/0.7678, allocations: 27.95 kB / 0.9993 GB, free: 3.309 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.7679, allocations: 8 kB / 0.9993 GB, free: 3.301 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003906/0.7683, allocations: 347.1 kB / 0.9996 GB, free: 2.965 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7683, allocations: 4 kB / 0.9996 GB, free: 2.961 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004124/0.7687, allocations: 143.5 kB / 0.9998 GB, free: 2.82 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.001226/0.7699, allocations: 1.223 MB / 1.001 GB, free: 1.57 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005711/0.7705, allocations: 335.3 kB / 1.001 GB, free: 1.242 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.7705, allocations: 0 / 1.001 GB, free: 1.242 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002821/0.7708, allocations: 183.8 kB / 1.001 GB, free: 1.062 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007046/0.7715, allocations: 133 kB / 1.002 GB, free: 0.9336 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005373/0.7769, allocations: 3.311 MB / 1.005 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.7774, allocations: 0.8707 MB / 1.006 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002232/0.7776, allocations: 60.31 kB / 1.006 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.7779, allocations: 191.4 kB / 1.006 GB, free: 12.42 MB / 0.7637 GB Notification: Performance of SimCode: time 2.7e-07/0.7779, allocations: 0 / 1.006 GB, free: 12.42 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02488/0.8027, allocations: 10.34 MB / 1.016 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.803, allocations: 255.9 kB / 1.016 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.881/2.684, allocations: 3.938 kB / 1.016 GB, free: 2.078 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