Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.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.Electrical.AC.OnePhase.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.008853/0.008853, allocations: 169.5 kB / 16.27 MB, free: 6.652 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.383/1.383, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.884/2.884, allocations: 473.4 MB / 0.7469 GB, free: 6.074 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003746/0.0003746, allocations: 10.84 kB / 0.9158 GB, free: 33.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3394, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels): time 0.01224/0.3517, allocations: 11.67 MB / 1.086 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1718/0.5235, allocations: 149.7 MB / 1.232 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002026/0.5256, allocations: 35.81 kB / 1.232 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0009807/0.5266, allocations: 313.4 kB / 1.232 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.003251/0.5299, allocations: 1.095 MB / 1.233 GB, free: 4.145 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003543/0.5334, allocations: 1.511 MB / 1.235 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003835/0.5373, allocations: 3.697 MB / 1.238 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004153/0.5414, allocations: 2.868 MB / 1.241 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.5429, allocations: 0.9602 MB / 1.242 GB, free: 11 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.5444, allocations: 1.189 MB / 1.243 GB, free: 9.805 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001908/0.5446, allocations: 76 kB / 1.243 GB, free: 9.73 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.546, allocations: 0.6943 MB / 1.244 GB, free: 9.035 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004632/0.5464, allocations: 0.521 MB / 1.244 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.5476, allocations: 1.252 MB / 1.246 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003886/0.5515, allocations: 4.38 MB / 1.25 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.5515, allocations: 0 / 1.25 GB, free: 2.852 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.714e-06/0.5515, allocations: 4 kB / 1.25 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.981e-05/0.5515, allocations: 0 / 1.25 GB, free: 2.848 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: 700 * Number of variables: 700 Notification: Performance of Generate backend data structure: time 0.005659/0.5572, allocations: 2.651 MB / 1.252 GB, free: 132 kB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.5573, allocations: 8.031 kB / 1.252 GB, free: 124 kB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7245/1.282, allocations: 1.755 MB / 1.254 GB, free: 179.2 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0039/1.286, allocations: 1.536 MB / 1.256 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003054/1.286, allocations: 206.5 kB / 1.256 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000626/1.287, allocations: 262.5 kB / 1.256 GB, free: 178.7 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009579/1.296, allocations: 3.71 MB / 1.26 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.953e-05/1.296, allocations: 4.5 kB / 1.26 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003443/1.297, allocations: 113.7 kB / 1.26 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001235/1.297, allocations: 128 kB / 1.26 GB, free: 178.3 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01162/1.308, allocations: 4.217 MB / 1.264 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02043/1.329, allocations: 11.44 MB / 1.275 GB, free: 169.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009084/1.338, allocations: 2.943 MB / 1.278 GB, free: 168.8 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003839/1.342, allocations: 1.403 MB / 1.28 GB, free: 168.3 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007678/1.343, allocations: 0.5889 MB / 1.28 GB, free: 167.7 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004564/1.347, allocations: 1.765 MB / 1.282 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=217): time 6.371e-06/1.347, allocations: 0 / 1.282 GB, free: 167.1 MB / 0.9981 GB Notification: Performance of matching and sorting (n=218): time 0.01371/1.361, allocations: 4.815 MB / 1.287 GB, free: 164.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/1.361, allocations: 263.4 kB / 1.287 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/1.363, allocations: 1.229 MB / 1.288 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002976/1.364, allocations: 69.05 kB / 1.288 GB, free: 163.6 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008726/1.365, allocations: 0.9828 MB / 1.289 GB, free: 162.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006551/1.365, allocations: 0.6944 MB / 1.29 GB, free: 162.1 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/1.366, allocations: 168.4 kB / 1.29 GB, free: 162 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.756e-05/1.366, allocations: 305.1 kB / 1.29 GB, free: 161.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003672/1.369, allocations: 1.22 MB / 1.291 GB, free: 161.1 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003849/1.373, allocations: 1.525 MB / 1.293 GB, free: 160.2 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007263/1.38, allocations: 2.692 MB / 1.295 GB, free: 158.7 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.365e-05/1.38, allocations: 10.12 kB / 1.295 GB, free: 158.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=267) (initialization): time 0.008695/1.389, allocations: 3.104 MB / 1.298 GB, free: 157.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/1.389, allocations: 267.4 kB / 1.299 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/1.389, allocations: 5.594 kB / 1.299 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.526e-05/1.389, allocations: 15.59 kB / 1.299 GB, free: 156.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003428/1.393, allocations: 0.6113 MB / 1.299 GB, free: 156.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-05/1.393, allocations: 18.2 kB / 1.299 GB, free: 156.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/1.396, allocations: 333.8 kB / 1.3 GB, free: 156.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002796/1.396, allocations: 107.3 kB / 1.3 GB, free: 156.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/1.396, allocations: 3.938 kB / 1.3 GB, free: 156.4 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007474/1.404, allocations: 2.867 MB / 1.303 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/1.404, allocations: 6.094 kB / 1.303 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/1.404, allocations: 14.75 kB / 1.303 GB, free: 155 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003397/1.407, allocations: 0.6013 MB / 1.303 GB, free: 154.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.474e-05/1.407, allocations: 17.69 kB / 1.303 GB, free: 154.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003082/1.411, allocations: 335.8 kB / 1.304 GB, free: 154.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/1.411, allocations: 110 kB / 1.304 GB, free: 154.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 29 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,pvOriented.HDirTil.incAng.decAng.tNext,$PRE.pvOriented.HDirTil.incAng.decAng.tNext,pvOriented.HDifTil.incAng.decAng.tNext,$PRE.pvOriented.HDifTil.incAng.decAng.tNext,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,HDirTil.incAng.decAng.tNext,$PRE.HDirTil.incAng.decAng.tNext,HDifTil.incAng.decAng.tNext,$PRE.HDifTil.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (267): * Single equations (assignments): 267 * 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 0.001574/1.412, allocations: 0.6355 MB / 1.304 GB, free: 154.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004917/1.413, allocations: 183.9 kB / 1.304 GB, free: 154 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008835/1.422, allocations: 3.514 MB / 1.308 GB, free: 151.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/1.422, allocations: 24 kB / 1.308 GB, free: 151.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/1.422, allocations: 3.984 kB / 1.308 GB, free: 151.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/1.422, allocations: 11.91 kB / 1.308 GB, free: 151.8 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/1.433, allocations: 6.213 MB / 1.314 GB, free: 145.6 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/1.433, allocations: 0 / 1.314 GB, free: 145.6 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002949/1.436, allocations: 0.55 MB / 1.315 GB, free: 145 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.922e-05/1.436, allocations: 19.94 kB / 1.315 GB, free: 145 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001803/1.436, allocations: 67.92 kB / 1.315 GB, free: 144.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.157e-05/1.436, allocations: 8 kB / 1.315 GB, free: 144.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/1.436, allocations: 0 / 1.315 GB, free: 144.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007189/1.443, allocations: 3.216 MB / 1.318 GB, free: 141.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/1.445, allocations: 0.6344 MB / 1.318 GB, free: 141 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/1.445, allocations: 44 kB / 1.318 GB, free: 141 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002485/1.447, allocations: 274.5 kB / 1.319 GB, free: 140.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002722/1.448, allocations: 157.8 kB / 1.319 GB, free: 140.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/1.448, allocations: 91.92 kB / 1.319 GB, free: 140.5 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00112/1.449, allocations: 0.8838 MB / 1.32 GB, free: 139.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.449, allocations: 4 kB / 1.32 GB, free: 139.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003265/1.452, allocations: 0.9751 MB / 1.321 GB, free: 138.6 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,HDifTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,pvOriented.HDifTil.incAng.decAng.tNext,pvOriented.HDirTil.incAng.decAng.tNext) * Number of discrete states: 9 (HDifTil.incAng.decAng.tNext,HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,pvOriented.HDifTil.incAng.decAng.tNext,pvOriented.HDirTil.incAng.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (240): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001758/1.454, allocations: 0.6681 MB / 1.321 GB, free: 138.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01147/1.466, allocations: 4.555 MB / 1.326 GB, free: 133.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-05/1.466, allocations: 0 / 1.326 GB, free: 133.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003801/1.469, allocations: 1.562 MB / 1.327 GB, free: 132.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/1.472, allocations: 466 kB / 1.328 GB, free: 131.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009471/1.482, allocations: 5.999 MB / 1.334 GB, free: 125.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009254/1.483, allocations: 1.621 MB / 1.335 GB, free: 123.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.004599/1.487, allocations: 0.8198 MB / 1.336 GB, free: 123.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009375/1.488, allocations: 243.2 kB / 1.336 GB, free: 122.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.863e-06/1.488, allocations: 4 kB / 1.336 GB, free: 122.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.0478/1.536, allocations: 32.55 MB / 1.368 GB, free: 90.56 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.PVPanels.pipe 2>&1)