Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V.1.|sen.V.2.|sen.V.3.|sen.S.1|1.|sen.S.1|2.|sen.S.2|1.|sen.S.2|2.|sen.S.3|1.|sen.S.3|2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.197/2.197, allocations: 387.1 MB / 399.7 MB, free: 9.414 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 176.1 kB / 492.3 MB, free: 0.6055 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.662/1.662, allocations: 221.3 MB / 0.7872 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009428/0.000943, allocations: 94.81 kB / 0.9267 GB, free: 13.97 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.79e-05/2.792e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2676, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.457/4.724, allocations: 1.79 GB / 3.002 GB, free: 50.89 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/4.725, allocations: 112 kB / 3.002 GB, free: 50.84 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37: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 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:30:3-37: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 1.185/5.91, allocations: 170.4 MB / 3.169 GB, free: 346.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.775e-06/5.91, allocations: 0 / 3.169 GB, free: 346.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0004537/5.91, allocations: 87.92 kB / 3.169 GB, free: 346.7 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01049/5.921, allocations: 3.115 MB / 3.172 GB, free: 343.5 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/5.921, allocations: 12.03 kB / 3.172 GB, free: 343.5 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005534/5.926, allocations: 0.8265 MB / 3.172 GB, free: 342.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006119/5.932, allocations: 2.273 MB / 3.175 GB, free: 340.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/5.933, allocations: 242.1 kB / 3.175 GB, free: 340.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/5.934, allocations: 304 kB / 3.175 GB, free: 339.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/5.945, allocations: 4.362 MB / 3.179 GB, free: 335.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.897e-05/5.946, allocations: 8 kB / 3.179 GB, free: 335.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005058/5.946, allocations: 136 kB / 3.18 GB, free: 335.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001964/5.946, allocations: 178 kB / 3.18 GB, free: 334.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006642/5.953, allocations: 3.935 MB / 3.184 GB, free: 331 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02119/5.974, allocations: 19.91 MB / 3.203 GB, free: 309.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002342/5.977, allocations: 1.83 MB / 3.205 GB, free: 307.7 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/5.978, allocations: 0.9395 MB / 3.206 GB, free: 306.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002271/5.978, allocations: 126.4 kB / 3.206 GB, free: 306.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00128/5.979, allocations: 1.093 MB / 3.207 GB, free: 305.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=150): time 3.316e-06/5.979, allocations: 0 / 3.207 GB, free: 305.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=187): time 0.03187/6.011, allocations: 11.86 MB / 3.219 GB, free: 293.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/6.011, allocations: 0.5023 MB / 3.219 GB, free: 292.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00322/6.014, allocations: 2.058 MB / 3.221 GB, free: 290.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0004896/6.015, allocations: 57.7 kB / 3.221 GB, free: 290.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001376/6.016, allocations: 1.523 MB / 3.223 GB, free: 289.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005139/6.017, allocations: 0.6238 MB / 3.223 GB, free: 288.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/6.017, allocations: 40 kB / 3.223 GB, free: 288.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001201/6.017, allocations: 389.8 kB / 3.224 GB, free: 288.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/6.019, allocations: 1.093 MB / 3.225 GB, free: 287 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/6.02, allocations: 1.621 MB / 3.226 GB, free: 285.2 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/6.022, allocations: 1.353 MB / 3.228 GB, free: 283.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-05/6.022, allocations: 4 kB / 3.228 GB, free: 283.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.0104/6.032, allocations: 4.551 MB / 3.232 GB, free: 279.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001089/6.033, allocations: 4.663 MB / 3.237 GB, free: 274.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-05/6.033, allocations: 15.95 kB / 3.237 GB, free: 274.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006227/6.04, allocations: 1.846 MB / 3.238 GB, free: 272.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002172/6.042, allocations: 479.2 kB / 3.239 GB, free: 271.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009413/6.051, allocations: 9.52 MB / 3.248 GB, free: 261.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002917/6.054, allocations: 195.7 kB / 3.248 GB, free: 261.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000492/6.055, allocations: 91.95 kB / 3.248 GB, free: 261.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/6.055, allocations: 5.25 kB / 3.248 GB, free: 261.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008313/6.063, allocations: 3.703 MB / 3.252 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/6.063, allocations: 12 kB / 3.252 GB, free: 257.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003793/6.067, allocations: 1.177 MB / 3.253 GB, free: 256.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/6.069, allocations: 483.2 kB / 3.254 GB, free: 256.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007963/6.077, allocations: 7.512 MB / 3.261 GB, free: 248.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/6.08, allocations: 171.7 kB / 3.261 GB, free: 248.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004386/6.08, allocations: 91.91 kB / 3.261 GB, free: 248.1 MB / 1.151 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.0009512/6.081, allocations: 234.9 kB / 3.261 GB, free: 247.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009781/6.082, allocations: 241.1 kB / 3.262 GB, free: 247.6 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01137/6.094, allocations: 4.339 MB / 3.266 GB, free: 243.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.654e-05/6.094, allocations: 31.98 kB / 3.266 GB, free: 243.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.599e-05/6.094, allocations: 4 kB / 3.266 GB, free: 243.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.069e-05/6.094, allocations: 11.97 kB / 3.266 GB, free: 243.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01943/6.113, allocations: 9.434 MB / 3.275 GB, free: 233.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-05/6.113, allocations: 4 kB / 3.275 GB, free: 233.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001531/6.115, allocations: 364 kB / 3.276 GB, free: 233.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006471/6.121, allocations: 1.807 MB / 3.277 GB, free: 231.4 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006232/6.122, allocations: 51.98 kB / 3.277 GB, free: 231.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/6.135, allocations: 13.15 MB / 3.29 GB, free: 217.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/6.135, allocations: 7.938 kB / 3.29 GB, free: 217.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/6.146, allocations: 4.67 MB / 3.295 GB, free: 212.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/6.148, allocations: 0.7008 MB / 3.295 GB, free: 211.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/6.149, allocations: 44 kB / 3.296 GB, free: 211.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002267/6.151, allocations: 191.7 kB / 3.296 GB, free: 211.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005512/6.152, allocations: 153.6 kB / 3.296 GB, free: 211.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002228/6.152, allocations: 67.97 kB / 3.296 GB, free: 211.3 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.003244/6.155, allocations: 1.589 MB / 3.297 GB, free: 209.7 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.8e-07/6.155, allocations: 0 / 3.297 GB, free: 209.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006713/6.162, allocations: 1.32 MB / 3.299 GB, free: 208.4 MB / 1.151 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.002451/6.164, allocations: 0.8324 MB / 3.3 GB, free: 207.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.009822/6.174, allocations: 5.365 MB / 3.305 GB, free: 202.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.467e-05/6.174, allocations: 0 / 3.305 GB, free: 202.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003851/6.178, allocations: 2.29 MB / 3.307 GB, free: 200 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/6.182, allocations: 0.5976 MB / 3.308 GB, free: 199.4 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/6.195, allocations: 5.377 MB / 3.313 GB, free: 193.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003511/6.199, allocations: 2.542 MB / 3.315 GB, free: 191.3 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005307/6.204, allocations: 1.372 MB / 3.317 GB, free: 189.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006002/6.205, allocations: 159.4 kB / 3.317 GB, free: 189.8 MB / 1.151 GB Notification: Performance of SimCode: time 1.483e-06/6.205, allocations: 0 / 3.317 GB, free: 189.8 MB / 1.151 GB Notification: Performance of Templates: time 0.0789/6.284, allocations: 50.33 MB / 3.366 GB, free: 139.7 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches