Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.on|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pumCon.on|pumCon.criSol.G_TC|pumCon.weaBus.HDirNor",fileNamePrefix="Buildings_latest_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.0009746/0.0009746, allocations: 99.7 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.001024/0.001023, 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.374/1.374, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.532/2.532, allocations: 436.5 MB / 0.7104 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003449, allocations: 8 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6277/0.628, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.006082/0.6342, allocations: 4.99 MB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1365/0.7707, allocations: 128.4 MB / 1.151 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009068/0.7716, allocations: 19.88 kB / 1.151 GB, free: 11.32 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0006362/0.7723, allocations: 142.9 kB / 1.151 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.002107/0.7744, allocations: 0.6593 MB / 1.152 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002051/0.7765, allocations: 0.7744 MB / 1.153 GB, free: 9.754 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.002302/0.7788, allocations: 1.229 MB / 1.154 GB, free: 8.52 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.7801, allocations: 0.9449 MB / 1.155 GB, free: 7.555 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008715/0.781, allocations: 0.5523 MB / 1.155 GB, free: 7 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000863/0.7819, allocations: 0.5945 MB / 1.156 GB, free: 6.402 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.7821, allocations: 48 kB / 1.156 GB, free: 6.355 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009/0.783, allocations: 343.6 kB / 1.156 GB, free: 6.02 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003051/0.7833, allocations: 290.7 kB / 1.157 GB, free: 5.734 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003269/0.7837, allocations: 328.7 kB / 1.157 GB, free: 5.406 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00241/0.7861, allocations: 2.256 MB / 1.159 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.7861, allocations: 0 / 1.159 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.142e-06/0.7861, allocations: 0 / 1.159 GB, free: 3.145 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.663e-05/0.7862, allocations: 4 kB / 1.159 GB, free: 3.141 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.004672/0.7909, allocations: 1.842 MB / 1.161 GB, free: 1.242 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.7909, allocations: 11.98 kB / 1.161 GB, free: 1.23 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006262/0.7972, allocations: 0.9224 MB / 1.162 GB, free: 312 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001964/0.7992, allocations: 1.059 MB / 1.163 GB, free: 15.2 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.7993, allocations: 123.3 kB / 1.163 GB, free: 15.08 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003355/0.7997, allocations: 156 kB / 1.163 GB, free: 14.93 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00531/0.805, allocations: 2.059 MB / 1.165 GB, free: 12.82 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/0.8051, allocations: 0 / 1.165 GB, free: 12.82 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002564/0.8053, allocations: 71.94 kB / 1.165 GB, free: 12.75 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.766e-05/0.8054, allocations: 40 kB / 1.165 GB, free: 12.71 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006914/0.8123, allocations: 2.487 MB / 1.168 GB, free: 10.22 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.8232, allocations: 5.323 MB / 1.173 GB, free: 4.816 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004645/0.8278, allocations: 1.713 MB / 1.175 GB, free: 3.102 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007456/0.8286, allocations: 499 kB / 1.175 GB, free: 2.523 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00269/0.8314, allocations: 1.071 MB / 1.176 GB, free: 1.434 MB / 0.92 GB Notification: Performance of pre-optimization done (n=139): time 3.847e-06/0.8314, allocations: 0 / 1.176 GB, free: 1.434 MB / 0.92 GB Notification: Performance of matching and sorting (n=139): time 0.007838/0.8392, allocations: 2.624 MB / 1.179 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.8394, allocations: 201.2 kB / 1.179 GB, free: 14.55 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.8407, allocations: 0.8669 MB / 1.18 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001741/0.8409, allocations: 53.7 kB / 1.18 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005334/0.8414, allocations: 0.6367 MB / 1.18 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.8418, allocations: 441.5 kB / 1.181 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.842, allocations: 28 kB / 1.181 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.8421, allocations: 353.9 kB / 1.181 GB, free: 12.13 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001979/0.8441, allocations: 0.674 MB / 1.182 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.8462, allocations: 0.8236 MB / 1.183 GB, free: 10.6 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/0.8483, allocations: 0.7209 MB / 1.183 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.8483, allocations: 0 / 1.183 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005292/0.8536, allocations: 1.789 MB / 1.185 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.8537, allocations: 8 kB / 1.185 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.8537, allocations: 0 / 1.185 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006407/0.8543, allocations: 88.83 kB / 1.185 GB, free: 7.984 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.8562, allocations: 339.5 kB / 1.185 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.8583, allocations: 1.548 MB / 1.187 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/0.86, allocations: 228.4 kB / 1.187 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/0.8602, allocations: 63.94 kB / 1.187 GB, free: 5.68 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 23 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.hys.y,pumCon.hys.y,$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 (153): * Single equations (assignments): 152 * 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.0008755/0.8611, allocations: 383.1 kB / 1.188 GB, free: 5.301 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002927/0.8614, allocations: 126.4 kB / 1.188 GB, free: 5.176 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006175/0.8676, allocations: 2.245 MB / 1.19 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.5e-05/0.8676, allocations: 16 kB / 1.19 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.8676, allocations: 0 / 1.19 GB, free: 2.898 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.8677, allocations: 11.91 kB / 1.19 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002263/0.8699, allocations: 1.78 MB / 1.192 GB, free: 1.047 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.8699, allocations: 3.953 kB / 1.192 GB, free: 1.043 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.8717, allocations: 323.6 kB / 1.192 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/0.8723, allocations: 88.77 kB / 1.192 GB, free: 0.6367 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001382/0.8724, allocations: 43.95 kB / 1.192 GB, free: 0.5938 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001842/0.8743, allocations: 1.575 MB / 1.194 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.8743, allocations: 0 / 1.194 GB, free: 14.88 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005203/0.8795, allocations: 1.933 MB / 1.196 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007978/0.8803, allocations: 458.8 kB / 1.196 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002886/0.8806, allocations: 31.94 kB / 1.196 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/0.8823, allocations: 167.8 kB / 1.196 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.8825, allocations: 121.1 kB / 1.196 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.8827, allocations: 59.95 kB / 1.196 GB, free: 12.09 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0009926/0.8837, allocations: 0.6306 MB / 1.197 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of sort global known variables: time 4.11e-07/0.8837, allocations: 0 / 1.197 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.001368/0.8851, allocations: 494.5 kB / 1.197 GB, free: 10.96 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,pumCon.hys.y,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 8 (pumCon.hys.y,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,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 (155): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001424/0.8865, allocations: 0.6244 MB / 1.198 GB, free: 10.51 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.004865/0.8914, allocations: 1.794 MB / 1.2 GB, free: 8.699 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.589e-06/0.8914, allocations: 3.938 kB / 1.2 GB, free: 8.695 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.002567/0.894, allocations: 1.06 MB / 1.201 GB, free: 7.625 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001439/0.8954, allocations: 284.1 kB / 1.201 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007475/0.9029, allocations: 3.777 MB / 1.205 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008893/0.9038, allocations: 1.296 MB / 1.206 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.002043/0.9059, allocations: 393.9 kB / 1.206 GB, free: 1.836 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006123/0.9065, allocations: 167.3 kB / 1.207 GB, free: 1.672 MB / 0.9512 GB Notification: Performance of SimCode: time 6.01e-07/0.9065, allocations: 3.938 kB / 1.207 GB, free: 1.668 MB / 0.9512 GB Notification: Performance of Templates: time 0.03615/0.9427, allocations: 21.51 MB / 1.228 GB, free: 12.32 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches