Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.225/2.225, allocations: 251.1 MB / 266.7 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001368/0.001368, allocations: 174 kB / 326.3 MB, free: 2.852 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.621/2.621, allocations: 205.4 MB / 0.5772 GB, free: 20.76 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000951/0.0009507, allocations: 91.78 kB / 0.6817 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000678/0.0006784, allocations: 11.84 kB / 0.7957 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2594, allocations: 106.3 MB / 0.8995 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine): time 0.009457/0.2689, allocations: 6.207 MB / 0.9056 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.2417/0.5107, allocations: 138 MB / 1.04 GB, free: 0.8047 MB / 0.6824 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001173/0.5119, allocations: 23.88 kB / 1.04 GB, free: 0.7812 MB / 0.6824 GB Notification: Performance of NFTyping.typeComponents: time 0.001068/0.513, allocations: 242.4 kB / 1.041 GB, free: 0.543 MB / 0.6824 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1/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 7.0.1/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 7.0.1/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.002948/0.516, allocations: 0.6206 MB / 1.041 GB, free: 15.92 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.003673/0.5196, allocations: 0.7851 MB / 1.042 GB, free: 15.15 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.003155/0.5228, allocations: 1.62 MB / 1.044 GB, free: 13.52 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003901/0.5268, allocations: 1.447 MB / 1.045 GB, free: 12.02 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.528, allocations: 454 kB / 1.045 GB, free: 11.57 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001327/0.5293, allocations: 0.5639 MB / 1.046 GB, free: 11.01 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0002394/0.5296, allocations: 36 kB / 1.046 GB, free: 10.97 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.531, allocations: 391.5 kB / 1.046 GB, free: 10.59 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0005345/0.5315, allocations: 306.9 kB / 1.047 GB, free: 10.29 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0004544/0.532, allocations: 245 kB / 1.047 GB, free: 10.04 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.002959/0.535, allocations: 1.535 MB / 1.048 GB, free: 8.504 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.535, allocations: 0 / 1.048 GB, free: 8.504 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.514e-06/0.535, allocations: 0 / 1.048 GB, free: 8.504 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.497e-05/0.5351, allocations: 4 kB / 1.048 GB, free: 8.5 MB / 0.698 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.00429/0.5394, allocations: 1.455 MB / 1.05 GB, free: 6.988 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.765e-05/0.5395, allocations: 8.031 kB / 1.05 GB, free: 6.98 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003501/0.543, allocations: 302.8 kB / 1.05 GB, free: 6.684 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003642/0.5467, allocations: 0.9141 MB / 1.051 GB, free: 5.727 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.5469, allocations: 78.05 kB / 1.051 GB, free: 5.648 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004385/0.5474, allocations: 104 kB / 1.051 GB, free: 5.547 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005518/0.5529, allocations: 1.314 MB / 1.052 GB, free: 4.141 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.135e-05/0.553, allocations: 7.938 kB / 1.053 GB, free: 4.133 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.5533, allocations: 47.98 kB / 1.053 GB, free: 4.086 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/0.5536, allocations: 57.98 kB / 1.053 GB, free: 4.027 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006362/0.56, allocations: 1.471 MB / 1.054 GB, free: 2.555 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.604/1.164, allocations: 4.697 MB / 1.059 GB, free: 153.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002853/1.167, allocations: 1.009 MB / 1.06 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/1.168, allocations: 432.3 kB / 1.06 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003101/1.169, allocations: 119.1 kB / 1.06 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001567/1.17, allocations: 0.5835 MB / 1.061 GB, free: 153.6 MB / 0.698 GB Notification: Performance of pre-optimization done (n=94): time 7.124e-06/1.17, allocations: 2.375 kB / 1.061 GB, free: 153.6 MB / 0.698 GB Notification: Performance of matching and sorting (n=95): time 0.008675/1.179, allocations: 2.117 MB / 1.063 GB, free: 153.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.517e-05/1.179, allocations: 242.7 kB / 1.063 GB, free: 152.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001903/1.181, allocations: 0.8973 MB / 1.064 GB, free: 152.7 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002609/1.181, allocations: 46.16 kB / 1.064 GB, free: 152.7 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006015/1.182, allocations: 0.5368 MB / 1.064 GB, free: 152.5 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004439/1.182, allocations: 320.3 kB / 1.065 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/1.182, allocations: 18.19 kB / 1.065 GB, free: 152.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001121/1.183, allocations: 339.9 kB / 1.065 GB, free: 152 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/1.184, allocations: 374.5 kB / 1.065 GB, free: 152 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/1.185, allocations: 0.5415 MB / 1.066 GB, free: 151.8 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/1.187, allocations: 446 kB / 1.066 GB, free: 151.8 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/1.187, allocations: 1.281 kB / 1.066 GB, free: 151.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.005301/1.192, allocations: 1.265 MB / 1.068 GB, free: 151.7 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/1.192, allocations: 186.2 kB / 1.068 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/1.192, allocations: 7.594 kB / 1.068 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/1.195, allocations: 262.3 kB / 1.068 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002065/1.197, allocations: 220.1 kB / 1.068 GB, free: 151.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004878/1.202, allocations: 1.987 MB / 1.07 GB, free: 150.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/1.204, allocations: 108.7 kB / 1.07 GB, free: 150.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002281/1.204, allocations: 48.59 kB / 1.07 GB, free: 150.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/1.204, allocations: 3.812 kB / 1.07 GB, free: 150.2 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003309/1.207, allocations: 0.9388 MB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.828e-05/1.207, allocations: 3.406 kB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/1.207, allocations: 7.625 kB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001922/1.209, allocations: 224.4 kB / 1.072 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.387e-05/1.209, allocations: 8.516 kB / 1.072 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/1.211, allocations: 107.2 kB / 1.072 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002768/1.211, allocations: 49.45 kB / 1.072 GB, free: 150.1 MB / 0.698 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 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.001158/1.212, allocations: 427.4 kB / 1.072 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/1.213, allocations: 109.4 kB / 1.072 GB, free: 149.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005705/1.219, allocations: 1.386 MB / 1.074 GB, free: 149.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.796e-05/1.219, allocations: 7.172 kB / 1.074 GB, free: 149.7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/1.219, allocations: 1.125 kB / 1.074 GB, free: 149.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001131/1.22, allocations: 341.2 kB / 1.074 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000386/1.22, allocations: 21.25 kB / 1.074 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/1.222, allocations: 103.5 kB / 1.074 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003591/1.222, allocations: 74.09 kB / 1.074 GB, free: 149.5 MB / 0.698 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00456/1.227, allocations: 1.305 MB / 1.075 GB, free: 149.3 MB / 0.698 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005071/1.232, allocations: 1.772 MB / 1.077 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001376/1.233, allocations: 456.4 kB / 1.078 GB, free: 148.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001592/1.235, allocations: 0.6298 MB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of Backend: time 8.81e-07/1.235, allocations: 4 kB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.007002/1.242, allocations: 1.922 MB / 1.08 GB, free: 147.5 MB / 0.698 GB Notification: Performance of SimCode: time 0.007344/1.249, allocations: 3.098 MB / 1.083 GB, free: 145.5 MB / 0.698 GB Notification: Performance of Templates: time 0.06035/1.31, allocations: 22.78 MB / 1.105 GB, free: 126.5 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & ./Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1)