Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.y|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.y|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 100 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.00183/0.00183, 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.504/1.504, allocations: 223.2 MB / 239.9 MB, free: 5.441 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.44/2.44, allocations: 390.3 MB / 0.6653 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005201/0.0005202, allocations: 8 kB / 0.8145 GB, free: 14.29 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8329/0.8335, allocations: 142.3 MB / 0.9535 GB, free: 8.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.004757/0.8383, allocations: 3.935 MB / 0.9574 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1735/1.012, allocations: 127.9 MB / 1.082 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/1.013, allocations: 11.94 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.000531/1.013, allocations: 111.1 kB / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001905/1.015, allocations: 0.5595 MB / 1.083 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001814/1.017, allocations: 0.6346 MB / 1.084 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001601/1.019, allocations: 0.8416 MB / 1.084 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008087/1.02, allocations: 0.492 MB / 1.085 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005249/1.02, allocations: 354.5 kB / 1.085 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004398/1.021, allocations: 350.1 kB / 1.086 GB, free: 8.648 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.61e-05/1.021, allocations: 24 kB / 1.086 GB, free: 8.625 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008263/1.021, allocations: 327.6 kB / 1.086 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002062/1.022, allocations: 195.2 kB / 1.086 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001828/1.022, allocations: 201.1 kB / 1.086 GB, free: 7.91 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001451/1.023, allocations: 1.227 MB / 1.087 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/1.023, allocations: 0 / 1.087 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.174e-06/1.023, allocations: 0 / 1.087 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.814e-05/1.023, allocations: 0 / 1.087 GB, free: 6.68 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 217 * Number of variables: 217 Notification: Performance of Generate backend data structure: time 0.002494/1.026, allocations: 1.29 MB / 1.089 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/1.026, allocations: 11.97 kB / 1.089 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009519/1.027, allocations: 202.4 kB / 1.089 GB, free: 5.121 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/1.028, allocations: 0.7427 MB / 1.09 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.189e-05/1.028, allocations: 62 kB / 1.09 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/1.028, allocations: 84 kB / 1.09 GB, free: 4.191 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/1.03, allocations: 0.934 MB / 1.091 GB, free: 3.219 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/1.03, allocations: 11.92 kB / 1.091 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.443e-05/1.03, allocations: 39.95 kB / 1.091 GB, free: 3.168 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/1.03, allocations: 24 kB / 1.091 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/1.032, allocations: 1.132 MB / 1.092 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004334/1.036, allocations: 2.634 MB / 1.094 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00155/1.038, allocations: 0.8353 MB / 1.095 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001829/1.038, allocations: 109.7 kB / 1.095 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009396/1.039, allocations: 0.5108 MB / 1.096 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=82): time 2.505e-06/1.039, allocations: 0 / 1.096 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of matching and sorting (n=82): time 0.003222/1.042, allocations: 1.255 MB / 1.097 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/1.042, allocations: 200.5 kB / 1.097 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008866/1.043, allocations: 0.6687 MB / 1.098 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.556e-05/1.043, allocations: 49.69 kB / 1.098 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003384/1.044, allocations: 424.3 kB / 1.098 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002199/1.044, allocations: 268.2 kB / 1.099 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.76e-05/1.044, allocations: 12 kB / 1.099 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001414/1.044, allocations: 333.9 kB / 1.099 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/1.045, allocations: 269.9 kB / 1.099 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006181/1.045, allocations: 366.5 kB / 1.1 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000574/1.046, allocations: 310.9 kB / 1.1 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/1.046, allocations: 0 / 1.1 GB, free: 9.578 MB / 0.8575 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001884/1.048, allocations: 0.8448 MB / 1.101 GB, free: 8.719 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/1.048, allocations: 4 kB / 1.101 GB, free: 8.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/1.048, allocations: 4 kB / 1.101 GB, free: 8.711 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005767/1.048, allocations: 88.8 kB / 1.101 GB, free: 8.621 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006573/1.049, allocations: 155.8 kB / 1.101 GB, free: 8.469 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002081/1.051, allocations: 1.552 MB / 1.102 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007346/1.052, allocations: 103.4 kB / 1.103 GB, free: 6.684 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.038e-05/1.052, allocations: 31.92 kB / 1.103 GB, free: 6.652 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005296/1.053, allocations: 273.6 kB / 1.103 GB, free: 6.375 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/1.053, allocations: 86.88 kB / 1.103 GB, free: 6.289 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/1.055, allocations: 1.137 MB / 1.104 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/1.055, allocations: 11.98 kB / 1.104 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/1.055, allocations: 0 / 1.104 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/1.055, allocations: 7.984 kB / 1.104 GB, free: 5.121 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001163/1.056, allocations: 0.9541 MB / 1.105 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/1.056, allocations: 3.953 kB / 1.105 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006112/1.057, allocations: 163.7 kB / 1.105 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000517/1.058, allocations: 80.78 kB / 1.105 GB, free: 3.871 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.568e-05/1.058, allocations: 27.97 kB / 1.105 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/1.06, allocations: 1.559 MB / 1.107 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/1.06, allocations: 0 / 1.107 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/1.062, allocations: 0.9746 MB / 1.108 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004926/1.062, allocations: 295.6 kB / 1.108 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/1.062, allocations: 24 kB / 1.108 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006678/1.063, allocations: 85.55 kB / 1.108 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/1.063, allocations: 68.89 kB / 1.108 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.217e-05/1.063, allocations: 39.97 kB / 1.108 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0006529/1.064, allocations: 483 kB / 1.109 GB, free: 164 kB / 0.8575 GB Notification: Performance of sort global known variables: time 2.31e-07/1.064, allocations: 0 / 1.109 GB, free: 164 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009372/1.065, allocations: 323.2 kB / 1.109 GB, free: 15.84 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001629/1.066, allocations: 0.6105 MB / 1.11 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002013/1.068, allocations: 0.8353 MB / 1.11 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.068, allocations: 3.938 kB / 1.11 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001043/1.07, allocations: 0.5393 MB / 1.111 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/1.071, allocations: 262.6 kB / 1.111 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004779/1.076, allocations: 2.308 MB / 1.113 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006689/1.077, allocations: 1.069 MB / 1.114 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009256/1.077, allocations: 258.7 kB / 1.115 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/1.078, allocations: 111.4 kB / 1.115 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of SimCode: time 6.11e-07/1.078, allocations: 0 / 1.115 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of Templates: time 0.02517/1.103, allocations: 14.21 MB / 1.129 GB, free: 11.91 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","../files/Buildings_9_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches