Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_9_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.0008136/0.0008136, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.0008259/0.0008259, allocations: 172.7 kB / 15.95 MB, free: 208 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.33/1.33, allocations: 223.3 MB / 240 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.286/2.286, allocations: 390.4 MB / 0.6655 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003037, allocations: 12 kB / 0.8149 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6228/0.6231, allocations: 142.3 MB / 0.9539 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.001105/0.6242, allocations: 1.007 MB / 0.9548 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003318/0.6276, allocations: 3.515 MB / 0.9583 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.406e-05/0.6276, allocations: 4 kB / 0.9583 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.6276, allocations: 0 / 0.9583 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003454/0.628, allocations: 72.56 kB / 0.9584 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.6282, allocations: 89.42 kB / 0.9584 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.358e-05/0.6283, allocations: 34.75 kB / 0.9585 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.486e-05/0.6283, allocations: 1.125 kB / 0.9585 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.754e-05/0.6284, allocations: 26.08 kB / 0.9585 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.131e-05/0.6285, allocations: 39.83 kB / 0.9585 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.114e-05/0.6285, allocations: 1.062 kB / 0.9585 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003735/0.6289, allocations: 292.1 kB / 0.9588 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.826e-06/0.6289, allocations: 5.594 kB / 0.9588 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.533e-05/0.6289, allocations: 27.2 kB / 0.9588 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.6291, allocations: 81.72 kB / 0.9589 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.6291, allocations: 0 / 0.9589 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6291, allocations: 4 kB / 0.9589 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.146e-06/0.6291, allocations: 0 / 0.9589 GB, free: 4.055 MB / 0.7169 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.0002857/0.6294, allocations: 357.3 kB / 0.9593 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.6294, allocations: 9.812 kB / 0.9593 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.462e-05/0.6294, allocations: 30.56 kB / 0.9593 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.035e-05/0.6295, allocations: 1.469 kB / 0.9593 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.142e-05/0.6295, allocations: 164.1 kB / 0.9595 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.6296, allocations: 1.125 kB / 0.9595 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.816e-06/0.6296, allocations: 1.344 kB / 0.9595 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.426e-05/0.6297, allocations: 48.28 kB / 0.9595 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.6297, allocations: 0 / 0.9595 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.6297, allocations: 5.672 kB / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.6297, allocations: 0 / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.069e-05/0.6297, allocations: 3.094 kB / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001068/0.6299, allocations: 154 kB / 0.9597 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.025e-05/0.6299, allocations: 20.61 kB / 0.9597 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.6299, allocations: 16.02 kB / 0.9597 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001992/0.6301, allocations: 97.33 kB / 0.9598 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.6302, allocations: 35.94 kB / 0.9598 GB, free: 3 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.894e-06/0.6302, allocations: 0 / 0.9598 GB, free: 3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.000138/0.6303, allocations: 48.47 kB / 0.9599 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.427e-05/0.6303, allocations: 53.25 kB / 0.9599 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.962e-05/0.6304, allocations: 107.3 kB / 0.96 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.932e-06/0.6304, allocations: 29.64 kB / 0.9601 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.655e-05/0.6304, allocations: 80.14 kB / 0.9601 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.03e-05/0.6305, allocations: 9.656 kB / 0.9601 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.544e-06/0.6305, allocations: 0 / 0.9601 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.762e-05/0.6305, allocations: 316.7 kB / 0.9604 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.114e-05/0.6305, allocations: 1.906 kB / 0.9604 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.778e-06/0.6305, allocations: 5.797 kB / 0.9605 GB, free: 2.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.717e-05/0.6306, allocations: 7.656 kB / 0.9605 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.6306, allocations: 3.938 kB / 0.9605 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.044e-05/0.6306, allocations: 38.7 kB / 0.9605 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.107e-05/0.6307, allocations: 5.344 kB / 0.9605 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.6307, allocations: 0 / 0.9605 GB, free: 2.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.6307, allocations: 3.984 kB / 0.9605 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.561e-05/0.6307, allocations: 3.594 kB / 0.9605 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.6307, allocations: 5.797 kB / 0.9605 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.526e-05/0.6308, allocations: 3.984 kB / 0.9605 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.128e-06/0.6308, allocations: 4.031 kB / 0.9605 GB, free: 2.281 MB / 0.7169 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 4.481e-05/0.6308, allocations: 107.6 kB / 0.9606 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.474e-06/0.6308, allocations: 1.781 kB / 0.9606 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.4e-05/0.6309, allocations: 51.53 kB / 0.9607 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.6309, allocations: 0 / 0.9607 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.6309, allocations: 0 / 0.9607 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.6309, allocations: 3.953 kB / 0.9607 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.545e-05/0.631, allocations: 159.8 kB / 0.9608 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.631, allocations: 4.031 kB / 0.9608 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.076e-05/0.631, allocations: 2.156 kB / 0.9608 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.631, allocations: 0 / 0.9608 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.6311, allocations: 1.469 kB / 0.9608 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.6311, allocations: 0 / 0.9608 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.6311, allocations: 0 / 0.9608 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.825e-05/0.6311, allocations: 71.64 kB / 0.9609 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.376e-05/0.6312, allocations: 78.42 kB / 0.961 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.6312, allocations: 9.5 kB / 0.961 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.389e-05/0.6312, allocations: 0 / 0.961 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.428e-05/0.6312, allocations: 9.297 kB / 0.961 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.6312, allocations: 1.156 kB / 0.961 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.115e-05/0.6312, allocations: 83.06 kB / 0.9611 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6313, allocations: 3.938 kB / 0.9611 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002177/0.6315, allocations: 21.41 kB / 0.9611 GB, free: 1.637 MB / 0.7169 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.0002714/0.6317, allocations: 0.6385 MB / 0.9617 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.413e-05/0.6318, allocations: 14.8 kB / 0.9617 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.6318, allocations: 1.375 kB / 0.9617 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.097e-05/0.6318, allocations: 4.125 kB / 0.9618 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001855/0.632, allocations: 2.125 kB / 0.9618 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/0.6324, allocations: 194.5 kB / 0.9619 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.6325, allocations: 0.6772 MB / 0.9626 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.62e-05/0.6325, allocations: 2.75 kB / 0.9626 GB, free: 116 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.259e-05/0.6326, allocations: 14.19 kB / 0.9626 GB, free: 104 kB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.6326, allocations: 4 kB / 0.9626 GB, free: 100 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01078/0.6433, allocations: 1.447 MB / 0.964 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.6436, allocations: 222.9 kB / 0.9642 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.65/2.294, allocations: 1 kB / 0.9642 GB, free: 15.21 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat does not exist to compare? outputFormat=mat