Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.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.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001158, allocations: 97.95 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.009045/0.009045, allocations: 174 kB / 16.27 MB, free: 6.648 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.395/1.395, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.855/2.855, allocations: 473.4 MB / 0.7469 GB, free: 6.09 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.0003699, allocations: 13.56 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.3791, allocations: 162.2 MB / 1.074 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.009169/0.3883, allocations: 7.301 MB / 1.081 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1748/0.5632, allocations: 148.4 MB / 1.226 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.5643, allocations: 23.88 kB / 1.226 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007543/0.565, allocations: 274.3 kB / 1.226 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.001954/0.567, allocations: 0.7847 MB / 1.227 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.002435/0.5695, allocations: 0.972 MB / 1.228 GB, free: 9.219 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.002/0.5715, allocations: 2.029 MB / 1.23 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.5737, allocations: 1.542 MB / 1.232 GB, free: 5.566 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006918/0.5744, allocations: 0.5132 MB / 1.232 GB, free: 5.051 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000846/0.5753, allocations: 0.6454 MB / 1.233 GB, free: 4.402 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.5754, allocations: 40 kB / 1.233 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.5767, allocations: 0.6592 MB / 1.233 GB, free: 3.703 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003453/0.577, allocations: 346.6 kB / 1.234 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000586/0.5776, allocations: 0.6462 MB / 1.234 GB, free: 2.707 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001966/0.5796, allocations: 2.157 MB / 1.237 GB, free: 0.543 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.5796, allocations: 4 kB / 1.237 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5796, allocations: 0 / 1.237 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.541e-05/0.5796, allocations: 0 / 1.237 GB, free: 0.5391 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.002686/0.5823, allocations: 1.573 MB / 1.238 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.5824, allocations: 12.03 kB / 1.238 GB, free: 14.9 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001384/0.5838, allocations: 310.6 kB / 1.238 GB, free: 14.59 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001287/0.5851, allocations: 0.9839 MB / 1.239 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.348e-05/0.5851, allocations: 90.22 kB / 1.239 GB, free: 13.48 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.5853, allocations: 111.9 kB / 1.24 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002161/0.5875, allocations: 1.398 MB / 1.241 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.776e-05/0.5875, allocations: 0 / 1.241 GB, free: 11.88 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.5877, allocations: 47.98 kB / 1.241 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.5878, allocations: 70.05 kB / 1.241 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002309/0.5901, allocations: 1.522 MB / 1.243 GB, free: 10.23 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00652/0.5966, allocations: 5.051 MB / 1.247 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.5985, allocations: 1.107 MB / 1.249 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007244/0.5992, allocations: 470.1 kB / 1.249 GB, free: 3.301 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002089/0.5994, allocations: 122 kB / 1.249 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/0.6005, allocations: 0.6546 MB / 1.25 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=103): time 2.465e-06/0.6005, allocations: 0 / 1.25 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of matching and sorting (n=104): time 0.005001/0.6055, allocations: 2.278 MB / 1.252 GB, free: 180 kB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.7748/1.38, allocations: 248.3 kB / 1.252 GB, free: 181.2 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/1.383, allocations: 0.9453 MB / 1.253 GB, free: 181 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003444/1.384, allocations: 45.33 kB / 1.253 GB, free: 181 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007074/1.384, allocations: 0.5627 MB / 1.254 GB, free: 180.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004696/1.385, allocations: 348.6 kB / 1.254 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/1.385, allocations: 87.02 kB / 1.254 GB, free: 180.8 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001175/1.385, allocations: 349.2 kB / 1.254 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001202/1.386, allocations: 408.5 kB / 1.255 GB, free: 180.5 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/1.388, allocations: 0.5876 MB / 1.255 GB, free: 180.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002893/1.391, allocations: 0.9814 MB / 1.256 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/1.391, allocations: 1.094 kB / 1.256 GB, free: 180.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.005542/1.396, allocations: 1.36 MB / 1.258 GB, free: 180.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/1.397, allocations: 181.2 kB / 1.258 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.911e-05/1.397, allocations: 2.969 kB / 1.258 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002082/1.399, allocations: 267.7 kB / 1.258 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/1.4, allocations: 232.5 kB / 1.258 GB, free: 179.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004423/1.405, allocations: 1.99 MB / 1.26 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/1.407, allocations: 119.6 kB / 1.26 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/1.407, allocations: 53.22 kB / 1.26 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/1.407, allocations: 5.094 kB / 1.26 GB, free: 178.5 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002812/1.41, allocations: 1.025 MB / 1.261 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/1.41, allocations: 7.75 kB / 1.261 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/1.41, allocations: 7.812 kB / 1.262 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/1.411, allocations: 236.1 kB / 1.262 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.308e-05/1.411, allocations: 11.75 kB / 1.262 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001606/1.413, allocations: 127.7 kB / 1.262 GB, free: 178 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/1.413, allocations: 49.41 kB / 1.262 GB, free: 178 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 (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,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * 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 {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0009928/1.414, allocations: 445.2 kB / 1.262 GB, free: 177.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/1.414, allocations: 116.4 kB / 1.262 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003356/1.418, allocations: 1.488 MB / 1.264 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/1.418, allocations: 20.83 kB / 1.264 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/1.418, allocations: 0 / 1.264 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/1.418, allocations: 5.25 kB / 1.264 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004918/1.423, allocations: 2.849 MB / 1.267 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/1.423, allocations: 0 / 1.267 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007801/1.424, allocations: 196.9 kB / 1.267 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000877/1.424, allocations: 218.8 kB / 1.267 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.724e-05/1.425, allocations: 27.42 kB / 1.267 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/1.427, allocations: 1.83 MB / 1.269 GB, free: 174.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/1.427, allocations: 8.844 kB / 1.269 GB, free: 174.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/1.429, allocations: 1.496 MB / 1.27 GB, free: 173.6 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000738/1.43, allocations: 364 kB / 1.271 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002816/1.43, allocations: 30.28 kB / 1.271 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/1.431, allocations: 113.9 kB / 1.271 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/1.432, allocations: 83.83 kB / 1.271 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001258/1.432, allocations: 43.28 kB / 1.271 GB, free: 173.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001369/1.433, allocations: 0.6787 MB / 1.272 GB, free: 173 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.433, allocations: 4 kB / 1.272 GB, free: 173 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002252/1.436, allocations: 0.5325 MB / 1.272 GB, free: 172.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00186/1.437, allocations: 0.6686 MB / 1.273 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.004283/1.442, allocations: 1.745 MB / 1.275 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/1.442, allocations: 1.062 kB / 1.275 GB, free: 172.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001534/1.443, allocations: 0.7046 MB / 1.275 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002522/1.446, allocations: 351 kB / 1.276 GB, free: 171.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/1.451, allocations: 3.077 MB / 1.279 GB, free: 169.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/1.453, allocations: 1.223 MB / 1.28 GB, free: 169.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002153/1.455, allocations: 470.2 kB / 1.28 GB, free: 169 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004958/1.455, allocations: 131 kB / 1.28 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/1.455, allocations: 0 / 1.28 GB, free: 168.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.04285/1.498, allocations: 19.04 MB / 1.299 GB, free: 162.1 MB / 0.9981 GB make -j1 -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)