Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 112.9 kB / 16.38 MB, free: 6.008 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.001337/0.001336, allocations: 193 kB / 17.31 MB, free: 5.625 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.56/1.56, allocations: 205.1 MB / 223.2 MB, free: 12.13 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 1.954/1.954, allocations: 292.3 MB / 0.5496 GB, free: 17.47 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.001942/0.001942, allocations: 76.11 kB / 0.6729 GB, free: 5.859 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3271, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.5282/0.8554, allocations: 6.719 MB / 0.7914 GB, free: 45.74 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.1855/1.041, allocations: 151.5 MB / 0.9393 GB, free: 11.94 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/1.042, allocations: 23.88 kB / 0.9393 GB, free: 11.91 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002161/1.045, allocations: 0.6594 MB / 0.9399 GB, free: 11.25 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.002472/1.047, allocations: 0.6586 MB / 0.9406 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002902/1.05, allocations: 0.9743 MB / 0.9415 GB, free: 9.637 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002528/1.053, allocations: 1.624 MB / 0.9431 GB, free: 8.008 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002235/1.055, allocations: 1.287 MB / 0.9444 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/1.056, allocations: 0.5877 MB / 0.945 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001171/1.057, allocations: 0.6652 MB / 0.9456 GB, free: 5.43 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0003149/1.057, allocations: 128 kB / 0.9457 GB, free: 5.305 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/1.059, allocations: 0.544 MB / 0.9463 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004736/1.059, allocations: 394.8 kB / 0.9466 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0008669/1.06, allocations: 0.6566 MB / 0.9473 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002596/1.063, allocations: 1.894 MB / 0.9491 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/1.063, allocations: 0 / 0.9491 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.834e-06/1.063, allocations: 0 / 0.9491 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.959e-05/1.063, allocations: 4 kB / 0.9491 GB, free: 1.812 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003591/1.066, allocations: 1.657 MB / 0.9508 GB, free: 108 kB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/1.066, allocations: 12.03 kB / 0.9508 GB, free: 96 kB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/1.068, allocations: 251 kB / 0.951 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/1.069, allocations: 0.9447 MB / 0.9519 GB, free: 14.86 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.476e-05/1.069, allocations: 70.75 kB / 0.952 GB, free: 14.79 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/1.07, allocations: 96 kB / 0.9521 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002103/1.072, allocations: 1.162 MB / 0.9532 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.185e-05/1.072, allocations: 0 / 0.9532 GB, free: 13.46 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/1.072, allocations: 48 kB / 0.9533 GB, free: 13.41 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-05/1.072, allocations: 57.97 kB / 0.9533 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002358/1.074, allocations: 1.284 MB / 0.9546 GB, free: 12.07 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008739/1.083, allocations: 4.278 MB / 0.9588 GB, free: 7.586 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/1.085, allocations: 0.8034 MB / 0.9595 GB, free: 6.77 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008613/1.086, allocations: 330.7 kB / 0.9599 GB, free: 6.445 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 8.538e-05/1.086, allocations: 32.61 kB / 0.9599 GB, free: 6.414 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008648/1.087, allocations: 473.8 kB / 0.9603 GB, free: 5.922 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=80): time 4.588e-06/1.087, allocations: 0 / 0.9603 GB, free: 5.922 MB / 0.7481 GB Notification: Performance of matching and sorting (n=80): time 0.002806/1.089, allocations: 1.065 MB / 0.9614 GB, free: 4.832 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001619/1.09, allocations: 295.4 kB / 0.9617 GB, free: 4.473 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/1.091, allocations: 0.9062 MB / 0.9625 GB, free: 3.539 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001128/1.092, allocations: 45.7 kB / 0.9626 GB, free: 3.488 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005306/1.092, allocations: 0.5153 MB / 0.9631 GB, free: 2.965 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002861/1.092, allocations: 268.1 kB / 0.9633 GB, free: 2.699 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003441/1.093, allocations: 174.5 kB / 0.9635 GB, free: 2.523 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001573/1.093, allocations: 345.8 kB / 0.9638 GB, free: 2.18 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007371/1.094, allocations: 284.6 kB / 0.9641 GB, free: 1.898 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000768/1.094, allocations: 428.5 kB / 0.9645 GB, free: 1.43 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/1.096, allocations: 0.6802 MB / 0.9652 GB, free: 0.7188 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/1.096, allocations: 0.9375 kB / 0.9652 GB, free: 0.7188 MB / 0.7481 GB Notification: Performance of matching and sorting (n=104) (initialization): time 0.002233/1.098, allocations: 0.8718 MB / 0.966 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/1.098, allocations: 4 kB / 0.966 GB, free: 15.83 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/1.098, allocations: 4 kB / 0.966 GB, free: 15.82 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002468/1.098, allocations: 35 kB / 0.9661 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/1.099, allocations: 179.7 kB / 0.9663 GB, free: 15.61 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/1.101, allocations: 1.393 MB / 0.9676 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001248/1.102, allocations: 99.31 kB / 0.9677 GB, free: 13.98 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/1.102, allocations: 39.98 kB / 0.9677 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001352/1.104, allocations: 0.5175 MB / 0.9682 GB, free: 13.42 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007866/1.105, allocations: 447.6 kB / 0.9687 GB, free: 12.94 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001424/1.106, allocations: 0.6651 MB / 0.9693 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.733e-06/1.106, allocations: 0 / 0.9693 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of matching and sorting (n=104) (initialization_lambda0): time 0.001965/1.108, allocations: 0.8597 MB / 0.9702 GB, free: 11.37 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/1.108, allocations: 4 kB / 0.9702 GB, free: 11.37 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.108, allocations: 4.875 kB / 0.9702 GB, free: 11.36 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/1.108, allocations: 11.98 kB / 0.9702 GB, free: 11.35 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/1.109, allocations: 175.7 kB / 0.9704 GB, free: 11.18 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/1.109, allocations: 9.094 kB / 0.9704 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008756/1.11, allocations: 102.7 kB / 0.9705 GB, free: 11.07 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-05/1.11, allocations: 39.98 kB / 0.9705 GB, free: 11.04 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (103): * Single equations (assignments): 102 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003371/1.11, allocations: 236 kB / 0.9707 GB, free: 10.8 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002854/1.11, allocations: 102.7 kB / 0.9708 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002057/1.113, allocations: 0.9085 MB / 0.9717 GB, free: 9.781 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/1.113, allocations: 3.984 kB / 0.9717 GB, free: 9.777 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/1.113, allocations: 0 / 0.9717 GB, free: 9.777 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004705/1.113, allocations: 283.5 kB / 0.972 GB, free: 9.48 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/1.113, allocations: 21.88 kB / 0.972 GB, free: 9.461 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006096/1.114, allocations: 63.88 kB / 0.9721 GB, free: 9.398 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/1.114, allocations: 68.84 kB / 0.9721 GB, free: 9.332 MB / 0.7637 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001895/1.116, allocations: 1.016 MB / 0.9731 GB, free: 8.305 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003066/1.119, allocations: 1.499 MB / 0.9746 GB, free: 6.789 MB / 0.7637 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007405/1.12, allocations: 331.8 kB / 0.9749 GB, free: 6.461 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001512/1.121, allocations: 0.6284 MB / 0.9755 GB, free: 5.82 MB / 0.7637 GB Notification: Performance of Backend: time 1.042e-06/1.121, allocations: 0 / 0.9755 GB, free: 5.82 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.005032/1.126, allocations: 1.711 MB / 0.9772 GB, free: 4.363 MB / 0.7637 GB Notification: Performance of SimCode: time 0.004573/1.131, allocations: 2.478 MB / 0.9796 GB, free: 1.863 MB / 0.7637 GB Notification: Performance of Templates: time 0.04703/1.178, allocations: 21.66 MB / 1.001 GB, free: 12.49 MB / 0.795 GB make -j1 -f Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)