Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController") translateModel(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001147/0.001147, 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.001193/0.001193, allocations: 193.2 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.374/1.374, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.874/2.874, allocations: 472.6 MB / 0.7451 GB, free: 4.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 67.88 kB / 0.912 GB, free: 33.42 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3469/0.3482, allocations: 159.9 MB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01367/0.362, allocations: 7.381 MB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.2029/0.5649, allocations: 151.8 MB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002625/0.5676, allocations: 23.88 kB / 1.224 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002622/0.5703, allocations: 427.5 kB / 1.224 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.004447/0.5748, allocations: 0.7599 MB / 1.225 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003626/0.5784, allocations: 1.123 MB / 1.226 GB, free: 8.355 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.004096/0.5825, allocations: 2.435 MB / 1.228 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002109/0.5846, allocations: 1.156 MB / 1.229 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.5863, allocations: 0.8879 MB / 1.23 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001876/0.5881, allocations: 0.9804 MB / 1.231 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0008336/0.589, allocations: 268 kB / 1.231 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002012/0.591, allocations: 0.6207 MB / 1.232 GB, free: 1.941 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0009371/0.592, allocations: 0.5647 MB / 1.233 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002327/0.5943, allocations: 1.077 MB / 1.234 GB, free: 300 kB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.007201/0.6015, allocations: 3.096 MB / 1.237 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/0.6016, allocations: 0 / 1.237 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.866e-06/0.6016, allocations: 0 / 1.237 GB, free: 13.19 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001924/0.6018, allocations: 0 / 1.237 GB, free: 13.19 MB / 0.9981 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.007871/0.6097, allocations: 2.272 MB / 1.239 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.132e-05/0.6098, allocations: 16.03 kB / 1.239 GB, free: 10.84 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006261/0.616, allocations: 0.8608 MB / 1.24 GB, free: 9.977 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.6181, allocations: 1.102 MB / 1.241 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001102/0.6182, allocations: 123.2 kB / 1.241 GB, free: 8.711 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002422/0.6185, allocations: 156 kB / 1.241 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004769/0.6232, allocations: 2.059 MB / 1.243 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/0.6233, allocations: 0 / 1.243 GB, free: 6.449 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.6235, allocations: 68 kB / 1.243 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/0.6235, allocations: 40 kB / 1.243 GB, free: 6.344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006203/0.6297, allocations: 2.448 MB / 1.246 GB, free: 3.891 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6416/1.271, allocations: 5.7 MB / 1.251 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004607/1.276, allocations: 1.711 MB / 1.253 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/1.278, allocations: 0.8054 MB / 1.254 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006371/1.279, allocations: 492.8 kB / 1.254 GB, free: 180.4 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002465/1.281, allocations: 1.073 MB / 1.255 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=139): time 3.336e-06/1.281, allocations: 3.828 kB / 1.255 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of matching and sorting (n=139): time 0.007763/1.289, allocations: 2.596 MB / 1.258 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/1.289, allocations: 203.5 kB / 1.258 GB, free: 179.7 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/1.29, allocations: 0.9378 MB / 1.259 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001393/1.291, allocations: 51.55 kB / 1.259 GB, free: 179.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000468/1.291, allocations: 0.6421 MB / 1.259 GB, free: 178.8 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003252/1.291, allocations: 451.3 kB / 1.26 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004638/1.292, allocations: 270.8 kB / 1.26 GB, free: 178.4 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.469e-05/1.292, allocations: 356.3 kB / 1.261 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/1.294, allocations: 0.6884 MB / 1.261 GB, free: 177.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/1.296, allocations: 0.829 MB / 1.262 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003946/1.3, allocations: 1.463 MB / 1.263 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/1.3, allocations: 0 / 1.263 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of matching and sorting (n=163) (initialization): time 0.005344/1.305, allocations: 1.841 MB / 1.265 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/1.305, allocations: 7 kB / 1.265 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/1.305, allocations: 3.156 kB / 1.265 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006405/1.306, allocations: 84.91 kB / 1.265 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/1.308, allocations: 347 kB / 1.266 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001904/1.31, allocations: 1.65 MB / 1.267 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/1.312, allocations: 201.6 kB / 1.267 GB, free: 174.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/1.312, allocations: 65.45 kB / 1.268 GB, free: 174.5 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 25 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,pumCon.hys.y,$PRE.pumCon.hys.y,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.00104/1.313, allocations: 409.9 kB / 1.268 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003549/1.314, allocations: 133.1 kB / 1.268 GB, free: 174.1 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006517/1.32, allocations: 2.221 MB / 1.27 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/1.32, allocations: 14.69 kB / 1.27 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.32, allocations: 0.5156 kB / 1.27 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/1.32, allocations: 10.8 kB / 1.27 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002723/1.323, allocations: 1.792 MB / 1.272 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/1.323, allocations: 3.938 kB / 1.272 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001933/1.325, allocations: 313.2 kB / 1.272 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004939/1.325, allocations: 75.31 kB / 1.272 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/1.326, allocations: 50.14 kB / 1.272 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/1.327, allocations: 1.679 MB / 1.274 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.327, allocations: 0 / 1.274 GB, free: 170.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005233/1.333, allocations: 1.925 MB / 1.276 GB, free: 170 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006682/1.333, allocations: 436.5 kB / 1.276 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002422/1.333, allocations: 41.97 kB / 1.276 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/1.335, allocations: 140.2 kB / 1.277 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003268/1.335, allocations: 114.3 kB / 1.277 GB, free: 169.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/1.336, allocations: 66.48 kB / 1.277 GB, free: 169.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001119/1.337, allocations: 0.6738 MB / 1.277 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/1.337, allocations: 0 / 1.277 GB, free: 169.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001452/1.338, allocations: 0.5211 MB / 1.278 GB, free: 169.2 MB / 0.9981 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001464/1.34, allocations: 0.6411 MB / 1.278 GB, free: 169 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006964/1.347, allocations: 2.171 MB / 1.281 GB, free: 168.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.347, allocations: 0 / 1.281 GB, free: 168.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002665/1.349, allocations: 1.058 MB / 1.282 GB, free: 167.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/1.351, allocations: 401.4 kB / 1.282 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006211/1.358, allocations: 3.08 MB / 1.285 GB, free: 166.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000923/1.358, allocations: 1.281 MB / 1.286 GB, free: 165.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001916/1.36, allocations: 394.2 kB / 1.287 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005912/1.361, allocations: 172.8 kB / 1.287 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.392e-06/1.361, allocations: 0 / 1.287 GB, free: 165.3 MB / 0.9981 GB Notification: Performance of Templates: time 0.03852/1.4, allocations: 25.04 MB / 1.311 GB, free: 149.8 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & ./Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)