Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_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_8_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.001354/0.001354, allocations: 105.2 kB / 16.37 MB, free: 6.312 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.001466/0.001467, allocations: 186.3 kB / 17.3 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.079/2.079, allocations: 292.3 MB / 0.5496 GB, free: 17.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 0.6729 GB, free: 5.789 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2677, allocations: 114.6 MB / 0.7848 GB, free: 3.121 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.5564/0.8241, allocations: 7.026 MB / 0.7917 GB, free: 45.79 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.2166/1.041, allocations: 151.9 MB / 0.94 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/1.043, allocations: 27.88 kB / 0.94 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002459/1.045, allocations: 0.7028 MB / 0.9407 GB, free: 10.41 MB / 0.7325 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. Notification: Performance of NFTyping.typeBindings: time 0.002878/1.048, allocations: 0.7543 MB / 0.9415 GB, free: 9.66 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003227/1.051, allocations: 1.028 MB / 0.9425 GB, free: 8.645 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002862/1.054, allocations: 1.698 MB / 0.9441 GB, free: 6.941 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003509/1.058, allocations: 1.348 MB / 0.9454 GB, free: 5.566 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001573/1.059, allocations: 0.6228 MB / 0.946 GB, free: 4.941 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001784/1.061, allocations: 0.7197 MB / 0.9467 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0005776/1.062, allocations: 136 kB / 0.9469 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002123/1.064, allocations: 0.6125 MB / 0.9475 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007802/1.065, allocations: 438.7 kB / 0.9479 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001596/1.066, allocations: 0.7032 MB / 0.9486 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003935/1.07, allocations: 2.083 MB / 0.9506 GB, free: 252 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/1.07, allocations: 4 kB / 0.9506 GB, free: 248 kB / 0.7325 GB Notification: Performance of FrontEnd: time 1.844e-06/1.07, allocations: 2.062 kB / 0.9506 GB, free: 248 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.667e-05/1.07, allocations: 0 / 0.9506 GB, free: 248 kB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.003371/1.074, allocations: 1.728 MB / 0.9523 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/1.074, allocations: 8.031 kB / 0.9523 GB, free: 14.45 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00156/1.075, allocations: 278.9 kB / 0.9526 GB, free: 14.18 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001731/1.077, allocations: 0.9834 MB / 0.9535 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/1.077, allocations: 78.8 kB / 0.9536 GB, free: 13.07 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000153/1.077, allocations: 108 kB / 0.9537 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002168/1.079, allocations: 1.31 MB / 0.955 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/1.079, allocations: 4 kB / 0.955 GB, free: 11.56 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001467/1.08, allocations: 44 kB / 0.955 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.501e-05/1.08, allocations: 57.98 kB / 0.9551 GB, free: 11.46 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/1.082, allocations: 1.463 MB / 0.9565 GB, free: 9.992 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007229/1.09, allocations: 4.647 MB / 0.9611 GB, free: 5.102 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0018/1.091, allocations: 0.9917 MB / 0.962 GB, free: 4.098 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007543/1.092, allocations: 428.6 kB / 0.9624 GB, free: 3.676 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002251/1.092, allocations: 134 kB / 0.9626 GB, free: 3.523 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009781/1.093, allocations: 0.5767 MB / 0.9631 GB, free: 2.926 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=94): time 4.018e-06/1.093, allocations: 0 / 0.9631 GB, free: 2.926 MB / 0.7481 GB Notification: Performance of matching and sorting (n=95): time 0.005262/1.099, allocations: 2.111 MB / 0.9652 GB, free: 0.7812 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001151/1.099, allocations: 245.4 kB / 0.9654 GB, free: 500 kB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/1.1, allocations: 0.9023 MB / 0.9663 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 7.133e-05/1.1, allocations: 41.7 kB / 0.9664 GB, free: 15.51 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005766/1.101, allocations: 0.5311 MB / 0.9669 GB, free: 14.97 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005174/1.101, allocations: 323.3 kB / 0.9672 GB, free: 14.65 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/1.102, allocations: 202.4 kB / 0.9674 GB, free: 14.45 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0004252/1.102, allocations: 349.9 kB / 0.9677 GB, free: 14.1 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006781/1.103, allocations: 376.6 kB / 0.9681 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008118/1.104, allocations: 0.5481 MB / 0.9686 GB, free: 13.12 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/1.105, allocations: 0.9136 MB / 0.9695 GB, free: 12.17 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/1.105, allocations: 7.938 kB / 0.9695 GB, free: 12.16 MB / 0.7637 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002727/1.108, allocations: 1.255 MB / 0.9707 GB, free: 10.9 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/1.108, allocations: 12.02 kB / 0.9707 GB, free: 10.89 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/1.108, allocations: 4 kB / 0.9707 GB, free: 10.88 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/1.109, allocations: 260.5 kB / 0.971 GB, free: 10.62 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008717/1.11, allocations: 215.7 kB / 0.9712 GB, free: 10.41 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003317/1.114, allocations: 2.124 MB / 0.9733 GB, free: 8.152 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008442/1.114, allocations: 103.3 kB / 0.9734 GB, free: 8.051 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.453e-05/1.115, allocations: 44.86 kB / 0.9734 GB, free: 8.008 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001101/1.116, allocations: 0.623 MB / 0.974 GB, free: 7.383 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008761/1.117, allocations: 0.5213 MB / 0.9745 GB, free: 6.809 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001356/1.118, allocations: 0.881 MB / 0.9754 GB, free: 5.883 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.865e-06/1.118, allocations: 0 / 0.9754 GB, free: 5.883 MB / 0.7637 GB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.001992/1.12, allocations: 1.06 MB / 0.9764 GB, free: 4.82 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/1.12, allocations: 6.438 kB / 0.9764 GB, free: 4.816 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/1.12, allocations: 4 kB / 0.9764 GB, free: 4.812 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.236e-06/1.12, allocations: 8 kB / 0.9764 GB, free: 4.805 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009069/1.121, allocations: 223.6 kB / 0.9767 GB, free: 4.586 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/1.121, allocations: 8 kB / 0.9767 GB, free: 4.578 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007497/1.122, allocations: 104.8 kB / 0.9768 GB, free: 4.477 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/1.122, allocations: 49.22 kB / 0.9768 GB, free: 4.43 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (116): * Single equations (assignments): 115 * 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.0002835/1.122, allocations: 240 kB / 0.977 GB, free: 4.188 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002021/1.122, allocations: 114.6 kB / 0.9771 GB, free: 4.074 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002927/1.125, allocations: 1.303 MB / 0.9784 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/1.125, allocations: 3.984 kB / 0.9784 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.125, allocations: 0 / 0.9784 GB, free: 2.758 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004291/1.126, allocations: 315.4 kB / 0.9787 GB, free: 2.43 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001399/1.126, allocations: 31.89 kB / 0.9788 GB, free: 2.398 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006852/1.127, allocations: 83.89 kB / 0.9788 GB, free: 2.316 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/1.127, allocations: 68.91 kB / 0.9789 GB, free: 2.25 MB / 0.7637 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002375/1.129, allocations: 1.286 MB / 0.9802 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002742/1.132, allocations: 1.774 MB / 0.9819 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006947/1.133, allocations: 455.8 kB / 0.9823 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000958/1.133, allocations: 0.6366 MB / 0.9829 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of Backend: time 3.1e-07/1.133, allocations: 0 / 0.9829 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.004814/1.138, allocations: 2.006 MB / 0.9849 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of SimCode: time 0.003949/1.142, allocations: 2.638 MB / 0.9875 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of Templates: time 0.03862/1.181, allocations: 24.66 MB / 1.012 GB, free: 1.262 MB / 0.795 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)