Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 110.2 kB / 16.38 MB, free: 5.547 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.001282/0.001282, allocations: 190.7 kB / 17.31 MB, free: 5.188 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.573/1.573, 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 1.955/1.955, allocations: 292.3 MB / 0.5496 GB, free: 17.5 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.001725/0.001725, allocations: 66.81 kB / 0.6729 GB, free: 5.855 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2413, allocations: 114.6 MB / 0.7848 GB, free: 3.18 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine): time 0.4186/0.66, allocations: 8.06 MB / 0.7927 GB, free: 45.15 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.1954/0.8554, allocations: 151.9 MB / 0.941 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.8567, allocations: 27.88 kB / 0.941 GB, free: 10.15 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.8593, allocations: 0.713 MB / 0.9417 GB, free: 9.434 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.003683/0.863, allocations: 0.7537 MB / 0.9425 GB, free: 8.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.003537/0.8665, allocations: 1.027 MB / 0.9435 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002693/0.8692, allocations: 1.687 MB / 0.9451 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002588/0.8718, allocations: 1.351 MB / 0.9464 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001269/0.8731, allocations: 0.6228 MB / 0.9471 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001594/0.8747, allocations: 0.7197 MB / 0.9478 GB, free: 3.25 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000506/0.8752, allocations: 136 kB / 0.9479 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.8769, allocations: 0.6164 MB / 0.9485 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0007278/0.8776, allocations: 442.7 kB / 0.9489 GB, free: 2.066 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001213/0.8788, allocations: 0.6916 MB / 0.9496 GB, free: 1.371 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003126/0.882, allocations: 2.092 MB / 0.9516 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 1.066e-05/0.882, allocations: 8 kB / 0.9516 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.033e-06/0.882, allocations: 4 kB / 0.9516 GB, free: 15.26 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.84e-05/0.882, allocations: 0 / 0.9516 GB, free: 15.26 MB / 0.7481 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.002996/0.885, allocations: 1.72 MB / 0.9533 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.8851, allocations: 8.031 kB / 0.9533 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001374/0.8865, allocations: 292.3 kB / 0.9536 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.8881, allocations: 0.9757 MB / 0.9546 GB, free: 12.17 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.867e-05/0.8882, allocations: 82.05 kB / 0.9546 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.8884, allocations: 104 kB / 0.9547 GB, free: 11.99 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002138/0.8905, allocations: 1.306 MB / 0.956 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.677e-05/0.8906, allocations: 4 kB / 0.956 GB, free: 10.59 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.8907, allocations: 44 kB / 0.9561 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-05/0.8908, allocations: 69.91 kB / 0.9561 GB, free: 10.47 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002293/0.8931, allocations: 1.456 MB / 0.9575 GB, free: 9.016 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006045/0.8991, allocations: 4.644 MB / 0.9621 GB, free: 4.125 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.9009, allocations: 0.9975 MB / 0.9631 GB, free: 3.117 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007339/0.9016, allocations: 429.6 kB / 0.9635 GB, free: 2.695 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001994/0.9018, allocations: 118.1 kB / 0.9636 GB, free: 2.559 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009621/0.9028, allocations: 0.5843 MB / 0.9641 GB, free: 1.953 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=94): time 2.805e-06/0.9028, allocations: 0 / 0.9641 GB, free: 1.953 MB / 0.7481 GB Notification: Performance of matching and sorting (n=95): time 0.004924/0.9078, allocations: 2.107 MB / 0.9662 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.9079, allocations: 244.3 kB / 0.9664 GB, free: 15.52 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.9091, allocations: 0.9062 MB / 0.9673 GB, free: 14.59 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 7.065e-05/0.9092, allocations: 41.7 kB / 0.9674 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004442/0.9096, allocations: 0.535 MB / 0.9679 GB, free: 14 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002654/0.9099, allocations: 319.4 kB / 0.9682 GB, free: 13.68 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000328/0.9102, allocations: 206.4 kB / 0.9684 GB, free: 13.47 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.9104, allocations: 345.9 kB / 0.9687 GB, free: 13.13 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006996/0.9111, allocations: 380.6 kB / 0.9691 GB, free: 12.75 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008656/0.912, allocations: 0.5442 MB / 0.9696 GB, free: 12.15 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.9135, allocations: 0.92 MB / 0.9705 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.9135, allocations: 0 / 0.9705 GB, free: 11.2 MB / 0.7637 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002738/0.9163, allocations: 1.262 MB / 0.9717 GB, free: 9.922 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.264e-05/0.9163, allocations: 9.062 kB / 0.9718 GB, free: 9.914 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.9163, allocations: 8 kB / 0.9718 GB, free: 9.906 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/0.9176, allocations: 261.2 kB / 0.972 GB, free: 9.648 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008961/0.9185, allocations: 215.7 kB / 0.9722 GB, free: 9.438 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003205/0.9217, allocations: 2.123 MB / 0.9743 GB, free: 7.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009712/0.9227, allocations: 99.45 kB / 0.9744 GB, free: 7.082 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.653e-05/0.9228, allocations: 43.97 kB / 0.9744 GB, free: 7.039 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001162/0.9239, allocations: 0.619 MB / 0.975 GB, free: 6.418 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008081/0.9248, allocations: 0.5368 MB / 0.9756 GB, free: 5.828 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00146/0.9262, allocations: 0.878 MB / 0.9764 GB, free: 4.906 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.22e-06/0.9262, allocations: 4 kB / 0.9764 GB, free: 4.902 MB / 0.7637 GB Notification: Performance of matching and sorting (n=119) (initialization_lambda0): time 0.001946/0.9282, allocations: 1.047 MB / 0.9774 GB, free: 3.852 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.9282, allocations: 8.781 kB / 0.9774 GB, free: 3.844 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.9282, allocations: 4 kB / 0.9774 GB, free: 3.84 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.9282, allocations: 13.67 kB / 0.9775 GB, free: 3.828 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008535/0.9291, allocations: 219.7 kB / 0.9777 GB, free: 3.613 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.9291, allocations: 11.94 kB / 0.9777 GB, free: 3.602 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008094/0.9299, allocations: 100 kB / 0.9778 GB, free: 3.504 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.735e-05/0.93, allocations: 47.97 kB / 0.9778 GB, free: 3.457 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.0003535/0.9304, allocations: 240 kB / 0.9781 GB, free: 3.215 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002147/0.9306, allocations: 106.7 kB / 0.9782 GB, free: 3.109 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002819/0.9335, allocations: 1.308 MB / 0.9794 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.9335, allocations: 3.984 kB / 0.9794 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.9335, allocations: 7.984 kB / 0.9794 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004404/0.9339, allocations: 315.4 kB / 0.9797 GB, free: 1.453 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.9341, allocations: 16 kB / 0.9798 GB, free: 1.438 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007304/0.9348, allocations: 88.59 kB / 0.9798 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.935, allocations: 72.89 kB / 0.9799 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002406/0.9374, allocations: 1.294 MB / 0.9812 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002708/0.9401, allocations: 1.776 MB / 0.9829 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0007894/0.9409, allocations: 459.8 kB / 0.9833 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001006/0.9419, allocations: 0.6357 MB / 0.984 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of Backend: time 9.92e-07/0.942, allocations: 0 / 0.984 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.005033/0.947, allocations: 1.996 MB / 0.9859 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of SimCode: time 0.004301/0.9513, allocations: 2.644 MB / 0.9885 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of Templates: time 0.04057/0.9919, allocations: 24.67 MB / 1.013 GB, free: 296 kB / 0.795 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & ./Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1)