Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 99.62 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.001561/0.001561, 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 1.348/1.348, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003258/0.0003258, allocations: 8 kB / 0.8146 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6254/0.6257, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues): time 0.0007123/0.6265, allocations: 278.8 kB / 0.9538 GB, free: 7.922 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001944/0.6267, allocations: 96.56 kB / 0.9539 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.094e-05/0.6267, allocations: 1.375 kB / 0.9539 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.602e-05/0.6268, allocations: 8.969 kB / 0.9539 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.923e-05/0.6269, allocations: 1.156 kB / 0.9539 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001296/0.627, allocations: 45.05 kB / 0.9539 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.252e-05/0.6271, allocations: 9.297 kB / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.101e-05/0.6271, allocations: 5.016 kB / 0.9539 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.61e-05/0.6271, allocations: 12.62 kB / 0.954 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.936e-05/0.6272, allocations: 8.078 kB / 0.954 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.6272, allocations: 2.281 kB / 0.954 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.77e-05/0.6272, allocations: 8.219 kB / 0.954 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.755e-06/0.6272, allocations: 1.031 kB / 0.954 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.278e-05/0.6273, allocations: 32.91 kB / 0.954 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.635e-05/0.6274, allocations: 22.36 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.6274, allocations: 0 / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6274, allocations: 0 / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.6274, allocations: 1.125 kB / 0.954 GB, free: 7.742 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000226/0.6276, allocations: 341.8 kB / 0.9544 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.6276, allocations: 12.62 kB / 0.9544 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.6277, allocations: 16.08 kB / 0.9544 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.229e-05/0.6278, allocations: 163 kB / 0.9545 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.6278, allocations: 2.562 kB / 0.9545 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.71e-05/0.6278, allocations: 7.469 kB / 0.9546 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001009/0.6279, allocations: 54.78 kB / 0.9546 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.628, allocations: 5.281 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.628, allocations: 1.281 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.96e-06/0.628, allocations: 0 / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.644e-05/0.628, allocations: 11.52 kB / 0.9546 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.556e-05/0.6281, allocations: 153.3 kB / 0.9548 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.2e-05/0.6282, allocations: 40.03 kB / 0.9548 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 5.801e-06/0.6282, allocations: 0 / 0.9548 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.6282, allocations: 32.03 kB / 0.9548 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.6282, allocations: 0 / 0.9548 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002073/0.6284, allocations: 100.8 kB / 0.9549 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.6285, allocations: 88.09 kB / 0.955 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.027e-05/0.6285, allocations: 93.08 kB / 0.9551 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.6285, allocations: 35.52 kB / 0.9551 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.573e-05/0.6286, allocations: 80.14 kB / 0.9552 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.6286, allocations: 5.547 kB / 0.9552 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.6286, allocations: 5.656 kB / 0.9552 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.019e-05/0.6287, allocations: 320.1 kB / 0.9555 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.758e-05/0.6287, allocations: 11.39 kB / 0.9555 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.715e-05/0.6287, allocations: 15.05 kB / 0.9556 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.96e-05/0.6288, allocations: 32.77 kB / 0.9556 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.6288, allocations: 64 / 0.9556 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001135/0.6289, allocations: 100.5 kB / 0.9557 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.6289, allocations: 34.55 kB / 0.9557 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.6289, allocations: 1.562 kB / 0.9557 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.629, allocations: 0 / 0.9557 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.629, allocations: 0 / 0.9557 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.629, allocations: 1.219 kB / 0.9557 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001292/0.6291, allocations: 7.828 kB / 0.9557 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.6291, allocations: 3.969 kB / 0.9557 GB, free: 5.922 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 6.393e-05/0.6292, allocations: 149.9 kB / 0.9559 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.6292, allocations: 7.594 kB / 0.9559 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.716e-06/0.6292, allocations: 4.344 kB / 0.9559 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.6292, allocations: 0 / 0.9559 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.6292, allocations: 1.281 kB / 0.9559 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.6293, allocations: 3.984 kB / 0.9559 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.302e-05/0.6293, allocations: 156.5 kB / 0.956 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.6293, allocations: 5.469 kB / 0.956 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.6293, allocations: 0 / 0.956 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.6293, allocations: 0 / 0.956 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.6294, allocations: 7.625 kB / 0.9561 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.6294, allocations: 0 / 0.9561 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.6294, allocations: 0 / 0.9561 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.6295, allocations: 126.3 kB / 0.9562 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.824e-05/0.6295, allocations: 77.11 kB / 0.9562 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.6296, allocations: 6.078 kB / 0.9563 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.6297, allocations: 5.531 kB / 0.9563 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.076e-05/0.6297, allocations: 4.969 kB / 0.9563 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.6297, allocations: 7.25 kB / 0.9563 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.013e-05/0.6297, allocations: 84.42 kB / 0.9563 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6297, allocations: 1.156 kB / 0.9563 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002034/0.6299, allocations: 11.41 kB / 0.9564 GB, free: 5.242 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001986/0.6301, allocations: 119.8 kB / 0.9565 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001289/0.6303, allocations: 83.38 kB / 0.9566 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.6303, allocations: 0 / 0.9566 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.315e-05/0.6303, allocations: 67.31 kB / 0.9566 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001007/0.6305, allocations: 7.578 kB / 0.9566 GB, free: 5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002128/0.6307, allocations: 104.2 kB / 0.9567 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001037/0.6308, allocations: 0.6723 MB / 0.9574 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.914e-05/0.6309, allocations: 11.33 kB / 0.9574 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.586e-06/0.6309, allocations: 7.438 kB / 0.9574 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of SimCode: time 1.062e-06/0.6309, allocations: 0.8438 kB / 0.9574 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of Templates: time 0.002897/0.6338, allocations: 1.014 MB / 0.9584 GB, free: 3.633 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ExchangeValues.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ExchangeValues.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches