Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 109.6 kB / 16.37 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.002149/0.002149, allocations: 193.3 kB / 17.31 MB, free: 5.621 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.523/1.523, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.892/1.892, allocations: 292.3 MB / 0.5496 GB, free: 17.43 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.001772/0.001772, allocations: 67.91 kB / 0.6729 GB, free: 5.871 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2839, allocations: 114.6 MB / 0.7848 GB, free: 3.195 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine): time 0.4591/0.743, allocations: 21.14 MB / 0.8055 GB, free: 38.25 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.2124/0.9555, allocations: 158.1 MB / 0.9599 GB, free: 6.863 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003333/0.9589, allocations: 71.69 kB / 0.9599 GB, free: 6.793 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.005698/0.9647, allocations: 1.863 MB / 0.9617 GB, free: 4.934 MB / 0.7481 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.007772/0.9725, allocations: 1.883 MB / 0.9636 GB, free: 3.047 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.007034/0.9795, allocations: 2.247 MB / 0.9658 GB, free: 0.8203 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.007635/0.9872, allocations: 5.151 MB / 0.9708 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00828/0.9955, allocations: 5.707 MB / 0.9764 GB, free: 6.008 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003653/0.9992, allocations: 2.119 MB / 0.9784 GB, free: 3.883 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003966/1.003, allocations: 2.375 MB / 0.9808 GB, free: 1.5 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001512/1.005, allocations: 479.9 kB / 0.9812 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/1.008, allocations: 1.151 MB / 0.9823 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.002305/1.01, allocations: 1.707 MB / 0.984 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002808/1.013, allocations: 2.104 MB / 0.9861 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.008504/1.022, allocations: 7.038 MB / 0.9929 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/1.022, allocations: 0 / 0.9929 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.563e-06/1.022, allocations: 0 / 0.9929 GB, free: 4.996 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001588/1.022, allocations: 0 / 0.9929 GB, free: 4.996 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.008256/1.03, allocations: 4.039 MB / 0.9969 GB, free: 0.8828 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/1.03, allocations: 8.031 kB / 0.9969 GB, free: 0.875 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003852/1.034, allocations: 0.7953 MB / 0.9977 GB, free: 76 kB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004726/1.039, allocations: 2.459 MB / 1 GB, free: 13.56 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00018/1.039, allocations: 238.2 kB / 1 GB, free: 13.33 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005969/1.039, allocations: 315.8 kB / 1.001 GB, free: 13.02 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008082/1.048, allocations: 4.741 MB / 1.005 GB, free: 8.125 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.303e-05/1.048, allocations: 7.938 kB / 1.005 GB, free: 8.117 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003223/1.048, allocations: 128 kB / 1.005 GB, free: 7.992 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003464/1.048, allocations: 218 kB / 1.006 GB, free: 7.777 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006991/1.055, allocations: 4.305 MB / 1.01 GB, free: 3.461 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02281/1.078, allocations: 19.33 MB / 1.029 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003054/1.081, allocations: 1.986 MB / 1.031 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/1.083, allocations: 1.117 MB / 1.032 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002572/1.083, allocations: 138.3 kB / 1.032 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001794/1.085, allocations: 1.202 MB / 1.033 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=160): time 6.532e-06/1.085, allocations: 3.984 kB / 1.033 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=197): time 0.036/1.121, allocations: 11.05 MB / 1.044 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/1.121, allocations: 308.7 kB / 1.044 GB, free: 14.6 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003062/1.124, allocations: 2.079 MB / 1.046 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0004518/1.125, allocations: 61.7 kB / 1.046 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001336/1.126, allocations: 1.477 MB / 1.048 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006834/1.127, allocations: 0.6585 MB / 1.048 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006792/1.127, allocations: 403.2 kB / 1.049 GB, free: 9.844 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001365/1.128, allocations: 305.1 kB / 1.049 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001816/1.129, allocations: 1.188 MB / 1.05 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002156/1.132, allocations: 1.622 MB / 1.052 GB, free: 6.586 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004033/1.136, allocations: 2.888 MB / 1.054 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/1.136, allocations: 0 / 1.054 GB, free: 3.574 MB / 0.8419 GB Notification: Performance of matching and sorting (n=253) (initialization): time 0.01364/1.149, allocations: 5.094 MB / 1.059 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.781e-05/1.149, allocations: 12.16 kB / 1.059 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/1.149, allocations: 12 kB / 1.059 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01028/1.16, allocations: 2.287 MB / 1.062 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002189/1.162, allocations: 467.3 kB / 1.062 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02051/1.182, allocations: 15.22 MB / 1.077 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002606/1.185, allocations: 187.7 kB / 1.077 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002714/1.185, allocations: 91.95 kB / 1.077 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003761/1.189, allocations: 2.159 MB / 1.079 GB, free: 9.176 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002028/1.191, allocations: 1.536 MB / 1.081 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003764/1.195, allocations: 2.705 MB / 1.084 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.153e-06/1.195, allocations: 0 / 1.084 GB, free: 4.66 MB / 0.8731 GB Notification: Performance of matching and sorting (n=253) (initialization_lambda0): time 0.01114/1.206, allocations: 4.342 MB / 1.088 GB, free: 304 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.206, allocations: 13.41 kB / 1.088 GB, free: 292 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/1.206, allocations: 10.25 kB / 1.088 GB, free: 284 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006528/1.213, allocations: 1.493 MB / 1.089 GB, free: 14.77 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/1.215, allocations: 479.2 kB / 1.09 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.226, allocations: 8.35 MB / 1.098 GB, free: 5.539 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/1.228, allocations: 192.5 kB / 1.098 GB, free: 5.352 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002695/1.228, allocations: 83.97 kB / 1.098 GB, free: 5.27 MB / 0.8887 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (235): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,2), (2,2), (2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0008113/1.229, allocations: 308 kB / 1.098 GB, free: 4.961 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000625/1.23, allocations: 233.1 kB / 1.099 GB, free: 4.73 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01351/1.243, allocations: 5.034 MB / 1.104 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.876e-05/1.243, allocations: 11.95 kB / 1.104 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/1.243, allocations: 4 kB / 1.104 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/1.245, allocations: 0.6191 MB / 1.104 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005205/1.246, allocations: 43.91 kB / 1.104 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001846/1.248, allocations: 232.1 kB / 1.104 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/1.248, allocations: 145.7 kB / 1.105 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0101/1.258, allocations: 4.207 MB / 1.109 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007015/1.265, allocations: 4.551 MB / 1.113 GB, free: 5.793 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001916/1.267, allocations: 1.366 MB / 1.114 GB, free: 4.426 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002487/1.27, allocations: 1.46 MB / 1.116 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of Backend: time 5.72e-07/1.27, allocations: 0 / 1.116 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.01243/1.282, allocations: 5.464 MB / 1.121 GB, free: 13.6 MB / 0.92 GB Notification: Performance of SimCode: time 0.01368/1.296, allocations: 6.516 MB / 1.128 GB, free: 7.066 MB / 0.92 GB Notification: Performance of Templates: time 0.5941/1.89, allocations: 64 MB / 1.19 GB, free: 281.8 MB / 0.92 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1)