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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.ConvectionResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow_nominal|m_flow|R",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow_nominal|m_flow|R",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 193.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.2 MB / 0.6647 GB, free: 296 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002234/0.002235, allocations: 67.89 kB / 0.8125 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7185/0.7208, allocations: 140.4 MB / 0.9496 GB, free: 9.246 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002295/0.7231, allocations: 1.281 MB / 0.9508 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00358/0.7267, allocations: 3.758 MB / 0.9545 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.267e-05/0.7267, allocations: 0 / 0.9545 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.788e-05/0.7268, allocations: 0 / 0.9545 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004717/0.7273, allocations: 99.67 kB / 0.9546 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002901/0.7276, allocations: 134.5 kB / 0.9547 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.665e-05/0.7276, allocations: 28.03 kB / 0.9548 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.518e-05/0.7277, allocations: 2.219 kB / 0.9548 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.7278, allocations: 27.23 kB / 0.9548 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.756e-05/0.7279, allocations: 43.58 kB / 0.9548 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.7279, allocations: 4 kB / 0.9548 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004197/0.7284, allocations: 302.3 kB / 0.9551 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.101e-05/0.7284, allocations: 0 / 0.9551 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.623e-05/0.7284, allocations: 11.17 kB / 0.9551 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.7286, allocations: 117.7 kB / 0.9553 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.7286, allocations: 0 / 0.9553 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.834e-06/0.7286, allocations: 0 / 0.9553 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.189e-06/0.7286, allocations: 1.219 kB / 0.9553 GB, free: 4.703 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.0003405/0.729, allocations: 358.7 kB / 0.9556 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.729, allocations: 13.34 kB / 0.9556 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.7291, allocations: 9.953 kB / 0.9556 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.764e-05/0.7292, allocations: 173.4 kB / 0.9558 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.7292, allocations: 1.594 kB / 0.9558 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.595e-06/0.7292, allocations: 1.75 kB / 0.9558 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.322e-05/0.7293, allocations: 32.3 kB / 0.9558 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.7293, allocations: 5.141 kB / 0.9558 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.7293, allocations: 0 / 0.9558 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7293, allocations: 0 / 0.9558 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.57e-05/0.7294, allocations: 12.64 kB / 0.9558 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001179/0.7295, allocations: 153.1 kB / 0.956 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.528e-05/0.7295, allocations: 29.28 kB / 0.956 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.88e-05/0.7296, allocations: 7.078 kB / 0.956 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002155/0.7298, allocations: 98.81 kB / 0.9561 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.7298, allocations: 44.09 kB / 0.9562 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.7298, allocations: 0 / 0.9562 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001453/0.73, allocations: 41.06 kB / 0.9562 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.721e-05/0.73, allocations: 51.41 kB / 0.9562 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.808e-05/0.7301, allocations: 107.4 kB / 0.9563 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.702e-06/0.7301, allocations: 26.89 kB / 0.9564 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.657e-05/0.7301, allocations: 88.12 kB / 0.9565 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.7301, allocations: 4.938 kB / 0.9565 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.48e-05/0.7302, allocations: 16.91 kB / 0.9565 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.44e-05/0.7302, allocations: 315.9 kB / 0.9568 GB, free: 3 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.7302, allocations: 2.125 kB / 0.9568 GB, free: 3 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.206e-05/0.7302, allocations: 7.141 kB / 0.9568 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.957e-05/0.7303, allocations: 10.45 kB / 0.9568 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.7303, allocations: 0 / 0.9568 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.709e-05/0.7304, allocations: 51.2 kB / 0.9568 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.7304, allocations: 4.75 kB / 0.9568 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.7304, allocations: 5.281 kB / 0.9569 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.268e-05/0.7304, allocations: 3.938 kB / 0.9569 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.003e-05/0.7305, allocations: 7.562 kB / 0.9569 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.7305, allocations: 3.984 kB / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.555e-05/0.7305, allocations: 0 / 0.9569 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-06/0.7305, allocations: 1.375 kB / 0.9569 GB, free: 2.926 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.7305, allocations: 107.3 kB / 0.957 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.776e-06/0.7306, allocations: 5.375 kB / 0.957 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.98e-05/0.7307, allocations: 55.09 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.7307, allocations: 1.188 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.7307, allocations: 0 / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.7307, allocations: 0 / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.322e-05/0.7308, allocations: 150.3 kB / 0.9572 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.7308, allocations: 0 / 0.9572 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.373e-05/0.7308, allocations: 11.78 kB / 0.9572 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.7308, allocations: 0 / 0.9572 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.884e-06/0.7308, allocations: 5.094 kB / 0.9572 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.7308, allocations: 3.984 kB / 0.9572 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.7308, allocations: 5.125 kB / 0.9572 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.666e-05/0.7309, allocations: 63.69 kB / 0.9573 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.002e-05/0.7309, allocations: 90.08 kB / 0.9573 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.7309, allocations: 1.062 kB / 0.9573 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.395e-05/0.731, allocations: 0 / 0.9573 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.324e-05/0.731, allocations: 5.172 kB / 0.9573 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.731, allocations: 1.188 kB / 0.9574 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.267e-05/0.731, allocations: 83.22 kB / 0.9574 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.4e-07/0.731, allocations: 0 / 0.9574 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002176/0.7312, allocations: 26.28 kB / 0.9575 GB, free: 2.277 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000169/0.7314, allocations: 130.2 kB / 0.9576 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 8.369e-05/0.7315, allocations: 12.19 kB / 0.9576 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7315, allocations: 0 / 0.9576 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.181e-05/0.7315, allocations: 3.969 kB / 0.9576 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.7318, allocations: 11.59 kB / 0.9576 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002399/0.732, allocations: 129.7 kB / 0.9577 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.652e-05/0.7321, allocations: 0.6798 MB / 0.9584 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.546e-05/0.7322, allocations: 4 kB / 0.9584 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.456e-05/0.7322, allocations: 14.88 kB / 0.9584 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.7322, allocations: 0 / 0.9584 GB, free: 1.324 MB / 0.7169 GB Notification: Performance of Templates: time 0.002751/0.7349, allocations: 0.7425 MB / 0.9591 GB, free: 0.9492 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (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 & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches