Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.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_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 112.3 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.001889/0.001889, allocations: 190 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.546/1.546, 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.019/2.019, allocations: 292.3 MB / 0.5496 GB, free: 17.58 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.001683/0.001683, allocations: 71.89 kB / 0.6729 GB, free: 5.852 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2704, allocations: 114.6 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N): time 0.5076/0.778, allocations: 20.89 MB / 0.8052 GB, free: 38.36 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.2201/0.9982, allocations: 158.2 MB / 0.9597 GB, free: 7.023 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/1.002, allocations: 67.75 kB / 0.9598 GB, free: 6.957 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.004356/1.006, allocations: 1.604 MB / 0.9613 GB, free: 5.355 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.006018/1.012, allocations: 1.759 MB / 0.963 GB, free: 3.598 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.006476/1.018, allocations: 2.107 MB / 0.9651 GB, free: 1.504 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.009468/1.028, allocations: 4.894 MB / 0.9699 GB, free: 12.6 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009405/1.037, allocations: 5.783 MB / 0.9755 GB, free: 6.859 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004491/1.042, allocations: 2.057 MB / 0.9775 GB, free: 4.797 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004562/1.047, allocations: 2.32 MB / 0.9798 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 0.001791/1.048, allocations: 456 kB / 0.9802 GB, free: 2.023 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003838/1.052, allocations: 1.112 MB / 0.9813 GB, free: 0.9102 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.002541/1.055, allocations: 1.629 MB / 0.9829 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.002898/1.058, allocations: 2.026 MB / 0.9849 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.007711/1.065, allocations: 6.715 MB / 0.9914 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/1.065, allocations: 0 / 0.9914 GB, free: 6.508 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.813e-06/1.065, allocations: 4 kB / 0.9914 GB, free: 6.504 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001488/1.066, allocations: 4 kB / 0.9915 GB, free: 6.5 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: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.009525/1.075, allocations: 3.894 MB / 0.9953 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/1.075, allocations: 11.97 kB / 0.9953 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003933/1.079, allocations: 0.8111 MB / 0.9961 GB, free: 1.703 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005065/1.084, allocations: 2.301 MB / 0.9983 GB, free: 15.34 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/1.084, allocations: 230 kB / 0.9985 GB, free: 15.12 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007416/1.085, allocations: 303.9 kB / 0.9988 GB, free: 14.82 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008747/1.094, allocations: 4.681 MB / 1.003 GB, free: 10 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.592e-05/1.094, allocations: 11.94 kB / 1.003 GB, free: 9.992 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003363/1.094, allocations: 124 kB / 1.004 GB, free: 9.871 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000396/1.095, allocations: 218 kB / 1.004 GB, free: 9.656 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008322/1.103, allocations: 4.296 MB / 1.008 GB, free: 5.352 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02649/1.13, allocations: 18.26 MB / 1.026 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/1.133, allocations: 2.118 MB / 1.028 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/1.135, allocations: 1.104 MB / 1.029 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000214/1.135, allocations: 134.3 kB / 1.029 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001708/1.136, allocations: 1.172 MB / 1.03 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=157): time 3.407e-06/1.137, allocations: 0 / 1.03 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of matching and sorting (n=192): time 0.03013/1.167, allocations: 10.24 MB / 1.04 GB, free: 2.75 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001752/1.167, allocations: 364.1 kB / 1.041 GB, free: 2.316 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002895/1.17, allocations: 1.892 MB / 1.042 GB, free: 384 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0004247/1.17, allocations: 57.7 kB / 1.042 GB, free: 320 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.001431/1.172, allocations: 1.436 MB / 1.044 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007262/1.172, allocations: 0.6392 MB / 1.044 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007057/1.173, allocations: 415.4 kB / 1.045 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.757e-05/1.173, allocations: 305.1 kB / 1.045 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.175, allocations: 1.157 MB / 1.046 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0022/1.177, allocations: 1.653 MB / 1.048 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004009/1.181, allocations: 2.915 MB / 1.051 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/1.181, allocations: 4 kB / 1.051 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of matching and sorting (n=262) (initialization): time 0.01127/1.193, allocations: 4.602 MB / 1.055 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.929e-05/1.193, allocations: 8 kB / 1.055 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/1.193, allocations: 16 kB / 1.055 GB, free: 2.738 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007315/1.2, allocations: 1.734 MB / 1.057 GB, free: 0.9961 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002229/1.202, allocations: 471.2 kB / 1.057 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01493/1.217, allocations: 9.788 MB / 1.067 GB, free: 6.484 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002739/1.22, allocations: 195.9 kB / 1.067 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002401/1.22, allocations: 95.95 kB / 1.067 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003585/1.224, allocations: 2.108 MB / 1.069 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00208/1.226, allocations: 1.586 MB / 1.071 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003858/1.23, allocations: 2.771 MB / 1.074 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.181e-05/1.23, allocations: 5.25 kB / 1.074 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of matching and sorting (n=262) (initialization_lambda0): time 0.009319/1.239, allocations: 4.001 MB / 1.077 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/1.239, allocations: 13.81 kB / 1.077 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/1.239, allocations: 12 kB / 1.077 GB, free: 11.31 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004628/1.244, allocations: 1.098 MB / 1.079 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002222/1.246, allocations: 495.2 kB / 1.079 GB, free: 9.727 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009193/1.255, allocations: 5.693 MB / 1.085 GB, free: 3.891 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002827/1.258, allocations: 175.8 kB / 1.085 GB, free: 3.719 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003418/1.259, allocations: 95.97 kB / 1.085 GB, free: 3.625 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (232): * Single equations (assignments): 230 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0008641/1.259, allocations: 310.2 kB / 1.085 GB, free: 3.316 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005842/1.26, allocations: 225.3 kB / 1.085 GB, free: 3.094 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01095/1.271, allocations: 4.374 MB / 1.09 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.906e-05/1.271, allocations: 19.89 kB / 1.09 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/1.271, allocations: 0 / 1.09 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/1.273, allocations: 0.5842 MB / 1.09 GB, free: 14.08 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003951/1.273, allocations: 43.98 kB / 1.09 GB, free: 14.04 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/1.275, allocations: 207.7 kB / 1.09 GB, free: 13.83 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003902/1.275, allocations: 149.8 kB / 1.091 GB, free: 13.68 MB / 0.8887 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008826/1.284, allocations: 3.994 MB / 1.094 GB, free: 9.676 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.006252/1.29, allocations: 4.407 MB / 1.099 GB, free: 5.246 MB / 0.8887 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001781/1.292, allocations: 1.311 MB / 1.1 GB, free: 3.941 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002028/1.294, allocations: 1.32 MB / 1.101 GB, free: 2.598 MB / 0.8887 GB Notification: Performance of Backend: time 3.2e-07/1.294, allocations: 0 / 1.101 GB, free: 2.598 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.305, allocations: 4.993 MB / 1.106 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of SimCode: time 0.01132/1.316, allocations: 6.321 MB / 1.112 GB, free: 7.469 MB / 0.9044 GB Notification: Performance of Templates: time 0.4923/1.808, allocations: 60.04 MB / 1.171 GB, free: 290 MB / 0.92 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe 2>&1)