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/Buildings 8.1.4-maint.8.1.x/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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.67/1.67, allocations: 289.9 MB / 297.4 MB, free: 6.434 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 180.9 kB / 366.7 MB, free: 1.699 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.735/1.735, allocations: 205.2 MB / 0.626 GB, free: 7.152 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008326/0.0008325, allocations: 93.5 kB / 0.74 GB, free: 39.54 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.256e-05/3.258e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6687/0.6688, allocations: 116.3 MB / 0.9734 GB, free: 76.24 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.411/7.08, allocations: 2.131 GB / 3.104 GB, free: 344 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003778/7.08, allocations: 107.8 kB / 3.104 GB, free: 344 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.RCha to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.XCha to false. Notification: Performance of FrontEnd - DAE generated: time 0.3619/7.442, allocations: 154.8 MB / 3.255 GB, free: 211.4 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.984e-06/7.442, allocations: 0 / 3.255 GB, free: 211.4 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003044/7.442, allocations: 87.94 kB / 3.255 GB, free: 211.3 MB / 0.948 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.01078/7.453, allocations: 3.071 MB / 3.258 GB, free: 208.2 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/7.453, allocations: 12.03 kB / 3.258 GB, free: 208.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005134/7.458, allocations: 0.8266 MB / 3.259 GB, free: 207.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005034/7.463, allocations: 2.277 MB / 3.261 GB, free: 205 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/7.464, allocations: 99.98 kB / 3.261 GB, free: 204.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005716/7.464, allocations: 184 kB / 3.262 GB, free: 204.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005969/7.47, allocations: 3.511 MB / 3.265 GB, free: 201.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005713/7.476, allocations: 3.917 MB / 3.269 GB, free: 197.2 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.019e-05/7.476, allocations: 3.938 kB / 3.269 GB, free: 197.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002843/7.476, allocations: 15.94 kB / 3.269 GB, free: 197.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001451/7.476, allocations: 174 kB / 3.269 GB, free: 197 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02007/7.496, allocations: 19.12 MB / 3.288 GB, free: 176.3 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/7.499, allocations: 1.741 MB / 3.289 GB, free: 174.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001483/7.5, allocations: 1.123 MB / 3.29 GB, free: 173.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002344/7.5, allocations: 130.3 kB / 3.291 GB, free: 173.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/7.502, allocations: 1.051 MB / 3.292 GB, free: 172.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=150): time 4.709e-06/7.502, allocations: 0 / 3.292 GB, free: 172.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=187): time 0.01726/7.519, allocations: 9.864 MB / 3.301 GB, free: 162.3 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/7.519, allocations: 0.5023 MB / 3.302 GB, free: 161.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/7.522, allocations: 1.866 MB / 3.304 GB, free: 159.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005367/7.523, allocations: 33.69 kB / 3.304 GB, free: 159.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001418/7.524, allocations: 1.519 MB / 3.305 GB, free: 158.2 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007248/7.525, allocations: 0.6005 MB / 3.306 GB, free: 157.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/7.525, allocations: 0 / 3.306 GB, free: 157.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001177/7.525, allocations: 385.8 kB / 3.306 GB, free: 157.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001291/7.527, allocations: 1.058 MB / 3.307 GB, free: 156.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/7.528, allocations: 1.578 MB / 3.309 GB, free: 154.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001876/7.53, allocations: 1.375 MB / 3.31 GB, free: 153 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/7.53, allocations: 8 kB / 3.31 GB, free: 152.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.008888/7.539, allocations: 4.196 MB / 3.314 GB, free: 148.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001026/7.54, allocations: 4.636 MB / 3.319 GB, free: 143.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/7.54, allocations: 12 kB / 3.319 GB, free: 143.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005299/7.545, allocations: 1.363 MB / 3.32 GB, free: 142.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002169/7.548, allocations: 479.2 kB / 3.32 GB, free: 141.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009156/7.557, allocations: 9.064 MB / 3.329 GB, free: 132.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002764/7.56, allocations: 159.7 kB / 3.329 GB, free: 132.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003143/7.56, allocations: 92.03 kB / 3.33 GB, free: 132.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/7.56, allocations: 8.562 kB / 3.33 GB, free: 132.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003281/7.563, allocations: 2.175 MB / 3.332 GB, free: 129.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/7.563, allocations: 12 kB / 3.332 GB, free: 129.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/7.563, allocations: 24 kB / 3.332 GB, free: 129.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001849/7.565, allocations: 0.5034 MB / 3.332 GB, free: 129.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.786e-05/7.565, allocations: 31.92 kB / 3.332 GB, free: 129.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/7.567, allocations: 103.7 kB / 3.332 GB, free: 129.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001656/7.567, allocations: 87.97 kB / 3.332 GB, free: 129.2 MB / 0.948 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic reactance of the cable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 230 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006475/7.568, allocations: 174.7 kB / 3.333 GB, free: 129 MB / 0.948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008788/7.577, allocations: 3.981 MB / 3.336 GB, free: 125 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/7.578, allocations: 233.2 kB / 3.337 GB, free: 124.8 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009755/7.588, allocations: 4.225 MB / 3.341 GB, free: 120.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.224e-05/7.588, allocations: 24 kB / 3.341 GB, free: 120.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/7.588, allocations: 7.953 kB / 3.341 GB, free: 120.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.283e-05/7.588, allocations: 7.969 kB / 3.341 GB, free: 120.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/7.603, allocations: 8.738 MB / 3.349 GB, free: 111.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/7.603, allocations: 4 kB / 3.349 GB, free: 111.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001562/7.605, allocations: 364 kB / 3.35 GB, free: 111.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005905/7.611, allocations: 1.796 MB / 3.351 GB, free: 109.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003563/7.611, allocations: 23.98 kB / 3.351 GB, free: 109.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/7.624, allocations: 12.51 MB / 3.364 GB, free: 96.18 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.177e-06/7.624, allocations: 4 kB / 3.364 GB, free: 96.18 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009676/7.633, allocations: 4.591 MB / 3.368 GB, free: 91.32 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001983/7.636, allocations: 0.6816 MB / 3.369 GB, free: 90.62 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004265/7.636, allocations: 12 kB / 3.369 GB, free: 90.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/7.638, allocations: 231.6 kB / 3.369 GB, free: 90.38 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003943/7.638, allocations: 161.6 kB / 3.369 GB, free: 90.22 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/7.638, allocations: 63.98 kB / 3.369 GB, free: 90.16 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.002076/7.641, allocations: 1.424 MB / 3.371 GB, free: 88.71 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.92e-07/7.641, allocations: 0 / 3.371 GB, free: 88.71 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004881/7.645, allocations: 1.144 MB / 3.372 GB, free: 87.57 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01082/7.656, allocations: 6.915 MB / 3.379 GB, free: 80.54 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.007744/7.664, allocations: 4.41 MB / 3.383 GB, free: 76.11 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.455e-05/7.664, allocations: 8.188 kB / 3.383 GB, free: 76.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003526/7.668, allocations: 2.221 MB / 3.385 GB, free: 73.82 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003538/7.671, allocations: 0.5365 MB / 3.386 GB, free: 73.29 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/7.686, allocations: 6.078 MB / 3.391 GB, free: 67.1 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002193/7.688, allocations: 2.533 MB / 3.394 GB, free: 64.53 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.004428/7.693, allocations: 1.376 MB / 3.395 GB, free: 63.15 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001628/7.694, allocations: 1.272 MB / 3.397 GB, free: 61.88 MB / 0.948 GB Notification: Performance of SimCode: time 1.183e-06/7.694, allocations: 0 / 3.397 GB, free: 61.88 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8422/8.536, allocations: 67.29 MB / 3.462 GB, free: 246.8 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00021/8.537, allocations: 193.9 kB / 3.462 GB, free: 246.5 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.057/12.59, allocations: 0 / 3.462 GB, free: 246.5 MB / 0.948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.fmu > Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1)