Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.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.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",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.0007676/0.0007675, 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.0008229/0.000823, 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.299/1.299, allocations: 223.2 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.427/2.427, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003682/0.0003683, allocations: 15.94 kB / 0.8378 GB, free: 6.516 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6809/0.6813, allocations: 146.8 MB / 0.9811 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.001823/0.6832, allocations: 1.008 MB / 0.9821 GB, free: 5.262 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.005417/0.6886, allocations: 3.515 MB / 0.9856 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.977e-05/0.6887, allocations: 0 / 0.9856 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.95e-05/0.6888, allocations: 0 / 0.9856 GB, free: 1.727 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005275/0.6893, allocations: 87.56 kB / 0.9856 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.6896, allocations: 86.64 kB / 0.9857 GB, free: 1.559 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.294e-05/0.6897, allocations: 27.86 kB / 0.9858 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.486e-05/0.6897, allocations: 3.984 kB / 0.9858 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.6899, allocations: 23.92 kB / 0.9858 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.69, allocations: 43.89 kB / 0.9858 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.453e-05/0.69, allocations: 0 / 0.9858 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004892/0.6905, allocations: 291.6 kB / 0.9861 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 8.186e-06/0.6905, allocations: 3.938 kB / 0.9861 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.6906, allocations: 29.7 kB / 0.9861 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.6907, allocations: 82.12 kB / 0.9862 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.6907, allocations: 0 / 0.9862 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.164e-06/0.6907, allocations: 0 / 0.9862 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.6908, allocations: 0 / 0.9862 GB, free: 1.059 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000467/0.6912, allocations: 355.3 kB / 0.9865 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.256e-05/0.6913, allocations: 12.03 kB / 0.9866 GB, free: 0.6523 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.6913, allocations: 30.56 kB / 0.9866 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.527e-05/0.6914, allocations: 3.906 kB / 0.9866 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.6915, allocations: 163.1 kB / 0.9867 GB, free: 420 kB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.6915, allocations: 4 kB / 0.9868 GB, free: 416 kB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.6915, allocations: 3.953 kB / 0.9868 GB, free: 412 kB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.6917, allocations: 37.62 kB / 0.9868 GB, free: 368 kB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.577e-06/0.6917, allocations: 0 / 0.9868 GB, free: 368 kB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.6917, allocations: 0 / 0.9868 GB, free: 368 kB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.361e-06/0.6917, allocations: 4 kB / 0.9868 GB, free: 364 kB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.396e-05/0.6918, allocations: 4 kB / 0.9868 GB, free: 360 kB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001973/0.692, allocations: 161.6 kB / 0.987 GB, free: 148 kB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 6.739e-05/0.692, allocations: 22.61 kB / 0.987 GB, free: 116 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.171e-05/0.6921, allocations: 8.922 kB / 0.987 GB, free: 104 kB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/0.6923, allocations: 105 kB / 0.9871 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.6924, allocations: 38.5 kB / 0.9871 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.6924, allocations: 0 / 0.9871 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of matching and sorting (n=2): time 0.0001567/0.6926, allocations: 37.7 kB / 0.9872 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.324e-05/0.6926, allocations: 51.41 kB / 0.9872 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.646e-05/0.6927, allocations: 105.8 kB / 0.9873 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.6927, allocations: 25.7 kB / 0.9873 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 3.549e-05/0.6928, allocations: 84.27 kB / 0.9874 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.6928, allocations: 11.84 kB / 0.9874 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.6928, allocations: 4 kB / 0.9874 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.6929, allocations: 310.8 kB / 0.9877 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.6929, allocations: 0 / 0.9877 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.409e-05/0.693, allocations: 11.92 kB / 0.9877 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.017e-05/0.693, allocations: 4 kB / 0.9877 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.693, allocations: 0 / 0.9877 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.503e-05/0.6931, allocations: 37.7 kB / 0.9878 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.6931, allocations: 17.08 kB / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.6931, allocations: 0 / 0.9878 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.6931, allocations: 4 kB / 0.9878 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.285e-05/0.6932, allocations: 0 / 0.9878 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.6932, allocations: 7.969 kB / 0.9878 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.643e-05/0.6932, allocations: 4 kB / 0.9878 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-06/0.6932, allocations: 0 / 0.9878 GB, free: 15.18 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 (2): * Single equations (assignments): 2 * 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 7.235e-05/0.6933, allocations: 105.8 kB / 0.9879 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/0.6933, allocations: 7.906 kB / 0.9879 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001341/0.6935, allocations: 60.7 kB / 0.988 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.6935, allocations: 0 / 0.988 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6935, allocations: 256 / 0.988 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.6935, allocations: 0 / 0.988 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/0.6936, allocations: 157.7 kB / 0.9881 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.6936, allocations: 0 / 0.9881 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.086e-05/0.6936, allocations: 0 / 0.9881 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.6936, allocations: 4 kB / 0.9881 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.6937, allocations: 0 / 0.9881 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.584e-06/0.6937, allocations: 7.984 kB / 0.9881 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.6937, allocations: 0 / 0.9881 GB, free: 14.78 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.113e-05/0.6938, allocations: 73.06 kB / 0.9882 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.6938, allocations: 77.11 kB / 0.9883 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.183e-05/0.6939, allocations: 0 / 0.9883 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.44e-05/0.6939, allocations: 0 / 0.9883 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.205e-05/0.6939, allocations: 11.94 kB / 0.9883 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.6939, allocations: 0 / 0.9883 GB, free: 14.58 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 4.303e-05/0.694, allocations: 83.31 kB / 0.9884 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.694, allocations: 0 / 0.9884 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002226/0.6942, allocations: 24 kB / 0.9884 GB, free: 14.48 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0004786/0.6947, allocations: 0.6357 MB / 0.989 GB, free: 13.81 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 9.231e-05/0.6948, allocations: 19.95 kB / 0.989 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.6948, allocations: 0 / 0.989 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 1.353e-05/0.6948, allocations: 8 kB / 0.989 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002303/0.695, allocations: 4.984 kB / 0.989 GB, free: 13.78 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003916/0.6954, allocations: 192.1 kB / 0.9892 GB, free: 13.55 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.6957, allocations: 0.6809 MB / 0.9899 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 2.692e-05/0.6957, allocations: 0 / 0.9899 GB, free: 12.85 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.658e-05/0.6957, allocations: 11.44 kB / 0.9899 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.6957, allocations: 0 / 0.9899 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01118/0.7069, allocations: 1.46 MB / 0.9913 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/0.7071, allocations: 220.8 kB / 0.9915 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.37, allocations: 0 / 0.9915 GB, free: 11.32 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat does not exist to compare? outputFormat=mat