Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_8_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.001357/0.001357, allocations: 100.1 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.001899/0.001899, 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 3.2.3+maint.om/package.mo): time 1.789/1.789, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.826/1.826, allocations: 292.6 MB / 0.5497 GB, free: 14.6 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007982/0.0007987, allocations: 14.16 kB / 0.6737 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3059, allocations: 116.3 MB / 0.7872 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.001433/0.3074, allocations: 1.002 MB / 0.7882 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004175/0.3116, allocations: 3.278 MB / 0.7914 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.704e-05/0.3117, allocations: 0 / 0.7914 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.113e-05/0.3117, allocations: 3.938 kB / 0.7914 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003915/0.3121, allocations: 79.77 kB / 0.7915 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.3124, allocations: 91.69 kB / 0.7916 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.396e-05/0.3125, allocations: 23.95 kB / 0.7916 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.814e-05/0.3125, allocations: 4 kB / 0.7916 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.3126, allocations: 27.84 kB / 0.7916 GB, free: 7.301 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.824e-05/0.3128, allocations: 27.97 kB / 0.7917 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.967e-06/0.3128, allocations: 0 / 0.7917 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004448/0.3132, allocations: 287.6 kB / 0.7919 GB, free: 6.992 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.3132, allocations: 7.984 kB / 0.792 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.3133, allocations: 25.7 kB / 0.792 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.3134, allocations: 76.11 kB / 0.792 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3135, allocations: 4 kB / 0.7921 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3135, allocations: 0 / 0.7921 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.3135, allocations: 0 / 0.7921 GB, free: 6.875 MB / 0.6075 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.0004348/0.3139, allocations: 355.2 kB / 0.7924 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.314, allocations: 12.03 kB / 0.7924 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.559e-05/0.314, allocations: 34.56 kB / 0.7924 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.231e-05/0.314, allocations: 3.953 kB / 0.7924 GB, free: 6.422 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.3142, allocations: 167.1 kB / 0.7926 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.3142, allocations: 0 / 0.7926 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.008e-05/0.3142, allocations: 4 kB / 0.7926 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.3143, allocations: 37.64 kB / 0.7926 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.004e-06/0.3143, allocations: 0 / 0.7926 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.997e-06/0.3144, allocations: 0 / 0.7926 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3144, allocations: 0 / 0.7926 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.003e-05/0.3144, allocations: 11.94 kB / 0.7927 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001777/0.3146, allocations: 153.7 kB / 0.7928 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.83e-05/0.3147, allocations: 26.59 kB / 0.7928 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002519/0.3149, allocations: 97.16 kB / 0.7929 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.315, allocations: 38.5 kB / 0.793 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.315, allocations: 0 / 0.793 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001829/0.3152, allocations: 45.59 kB / 0.793 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.3152, allocations: 51.41 kB / 0.793 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.547e-05/0.3153, allocations: 102 kB / 0.7931 GB, free: 5.543 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.3153, allocations: 29.7 kB / 0.7932 GB, free: 5.508 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.947e-05/0.3154, allocations: 88.12 kB / 0.7933 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.3154, allocations: 3.906 kB / 0.7933 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.3154, allocations: 0 / 0.7933 GB, free: 5.414 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.3155, allocations: 314.8 kB / 0.7936 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.307e-05/0.3156, allocations: 4 kB / 0.7936 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.837e-06/0.3156, allocations: 3.938 kB / 0.7936 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.977e-05/0.3156, allocations: 16 kB / 0.7936 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3156, allocations: 0 / 0.7936 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.429e-05/0.3157, allocations: 41.69 kB / 0.7936 GB, free: 5.027 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.313e-05/0.3157, allocations: 4 kB / 0.7936 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.3157, allocations: 0 / 0.7936 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.3157, allocations: 0 / 0.7936 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.763e-05/0.3158, allocations: 4 kB / 0.7936 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.3158, allocations: 3.938 kB / 0.7936 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.606e-05/0.3158, allocations: 0 / 0.7936 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.3158, allocations: 0 / 0.7936 GB, free: 5.016 MB / 0.6075 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 8.013e-05/0.3159, allocations: 121.8 kB / 0.7937 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-06/0.3159, allocations: 0 / 0.7937 GB, free: 4.887 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.3161, allocations: 52.75 kB / 0.7938 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3161, allocations: 0 / 0.7938 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3161, allocations: 0 / 0.7938 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3161, allocations: 0 / 0.7938 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001217/0.3162, allocations: 161.6 kB / 0.794 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3162, allocations: 0 / 0.794 GB, free: 4.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.274e-05/0.3163, allocations: 8.031 kB / 0.794 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3163, allocations: 3.984 kB / 0.794 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.3163, allocations: 256 / 0.794 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3163, allocations: 4 kB / 0.794 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3163, allocations: 4 kB / 0.794 GB, free: 4.602 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.688e-05/0.3164, allocations: 68.94 kB / 0.794 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.681e-05/0.3165, allocations: 85.09 kB / 0.7941 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.3165, allocations: 0 / 0.7941 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.439e-05/0.3165, allocations: 4.031 kB / 0.7941 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.255e-05/0.3165, allocations: 0 / 0.7941 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.3165, allocations: 3.984 kB / 0.7941 GB, free: 4.406 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.204e-05/0.3166, allocations: 83.28 kB / 0.7942 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3166, allocations: 0 / 0.7942 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002097/0.3168, allocations: 27.98 kB / 0.7942 GB, free: 4.297 MB / 0.6075 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.0004499/0.3173, allocations: 0.6242 MB / 0.7948 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 7.388e-05/0.3173, allocations: 15.94 kB / 0.7949 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3174, allocations: 0 / 0.7949 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.106e-05/0.3174, allocations: 7.938 kB / 0.7949 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.3176, allocations: 7.984 kB / 0.7949 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000454/0.318, allocations: 204.1 kB / 0.7951 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003769/0.3184, allocations: 0.677 MB / 0.7957 GB, free: 2.672 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.141e-05/0.3184, allocations: 4 kB / 0.7957 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.189e-05/0.3185, allocations: 7.438 kB / 0.7957 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.3185, allocations: 4 kB / 0.7957 GB, free: 2.656 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.3308, allocations: 1.428 MB / 0.7971 GB, free: 1.414 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002618/0.3311, allocations: 211.8 kB / 0.7973 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.226/2.557, allocations: 0 / 0.7973 GB, free: 1.176 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) Environment - environmentSimulation: