Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.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_N,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_N") translateModel(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N,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_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.192/2.192, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001575/0.001575, allocations: 180.8 kB / 492.3 MB, free: 0.6172 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.497/1.497, allocations: 221.3 MB / 0.7872 GB, free: 12.87 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.0008901/0.0008901, allocations: 93.86 kB / 0.9267 GB, free: 13.94 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.204e-05/4.215e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2849, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.367/4.652, allocations: 1.791 GB / 3.004 GB, free: 72.36 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/4.653, allocations: 103.9 kB / 3.004 GB, free: 72.25 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.158/5.81, allocations: 160.9 MB / 3.161 GB, free: 364.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 3.356e-06/5.811, allocations: 7.984 kB / 3.161 GB, free: 364.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000264/5.811, allocations: 77.25 kB / 3.161 GB, free: 364.9 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: 812 * Number of variables: 812 Notification: Performance of Generate backend data structure: time 0.009609/5.82, allocations: 3.032 MB / 3.164 GB, free: 362.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/5.82, allocations: 15.12 kB / 3.164 GB, free: 362.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005795/5.826, allocations: 0.8299 MB / 3.165 GB, free: 362.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006489/5.833, allocations: 2.129 MB / 3.167 GB, free: 361 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002433/5.833, allocations: 231.5 kB / 3.167 GB, free: 360.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001626/5.835, allocations: 309.1 kB / 3.167 GB, free: 360.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/5.848, allocations: 4.293 MB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002236/5.849, allocations: 3.938 kB / 3.171 GB, free: 358.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001349/5.85, allocations: 129.6 kB / 3.172 GB, free: 358.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002651/5.85, allocations: 170.5 kB / 3.172 GB, free: 358.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009137/5.859, allocations: 3.889 MB / 3.176 GB, free: 356.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02803/5.887, allocations: 18.63 MB / 3.194 GB, free: 336.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002654/5.89, allocations: 1.757 MB / 3.195 GB, free: 335.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/5.891, allocations: 0.9264 MB / 3.196 GB, free: 334.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002267/5.892, allocations: 134.5 kB / 3.197 GB, free: 334.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001468/5.893, allocations: 1.06 MB / 3.198 GB, free: 332.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=147): time 7.314e-06/5.893, allocations: 112 / 3.198 GB, free: 332.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=182): time 0.02723/5.92, allocations: 12.05 MB / 3.209 GB, free: 320.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/5.92, allocations: 0.5847 MB / 3.21 GB, free: 320.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0025/5.923, allocations: 1.852 MB / 3.212 GB, free: 318.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0003418/5.923, allocations: 57.7 kB / 3.212 GB, free: 318.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.00118/5.925, allocations: 1.477 MB / 3.213 GB, free: 316.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004531/5.925, allocations: 0.6109 MB / 3.214 GB, free: 316 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/5.925, allocations: 44 kB / 3.214 GB, free: 316 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001128/5.925, allocations: 386 kB / 3.214 GB, free: 315.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001323/5.927, allocations: 1.07 MB / 3.215 GB, free: 314.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/5.928, allocations: 1.656 MB / 3.217 GB, free: 312.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/5.93, allocations: 1.357 MB / 3.218 GB, free: 311.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/5.93, allocations: 8 kB / 3.218 GB, free: 311.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007593/5.937, allocations: 4.185 MB / 3.222 GB, free: 307.1 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009703/5.938, allocations: 5.88 MB / 3.228 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/5.938, allocations: 16 kB / 3.228 GB, free: 300.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004546/5.943, allocations: 1.442 MB / 3.229 GB, free: 299.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/5.945, allocations: 475.2 kB / 3.23 GB, free: 298.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006739/5.952, allocations: 5.852 MB / 3.236 GB, free: 292.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002628/5.954, allocations: 203.6 kB / 3.236 GB, free: 292.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002148/5.954, allocations: 91.97 kB / 3.236 GB, free: 292.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/5.954, allocations: 4 kB / 3.236 GB, free: 292.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006099/5.961, allocations: 3.463 MB / 3.239 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/5.961, allocations: 16.66 kB / 3.239 GB, free: 289 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/5.963, allocations: 0.9007 MB / 3.24 GB, free: 288.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/5.965, allocations: 0.4914 MB / 3.241 GB, free: 287.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005776/5.971, allocations: 4.867 MB / 3.245 GB, free: 282.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002344/5.973, allocations: 183.7 kB / 3.246 GB, free: 282.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003039/5.974, allocations: 91.97 kB / 3.246 GB, free: 282.3 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: 65 * 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 (234): * Single equations (assignments): 232 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 12} * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0006688/5.974, allocations: 231.3 kB / 3.246 GB, free: 282.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006579/5.975, allocations: 229.3 kB / 3.246 GB, free: 281.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009185/5.984, allocations: 3.753 MB / 3.25 GB, free: 278.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.858e-05/5.984, allocations: 20.12 kB / 3.25 GB, free: 278.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.819e-05/5.984, allocations: 16 kB / 3.25 GB, free: 278.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.062e-05/5.984, allocations: 11.95 kB / 3.25 GB, free: 278 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01849/6.003, allocations: 9.278 MB / 3.259 GB, free: 268.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.141e-05/6.003, allocations: 8.75 kB / 3.259 GB, free: 268.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/6.004, allocations: 331.5 kB / 3.259 GB, free: 268.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004617/6.009, allocations: 1.4 MB / 3.261 GB, free: 266.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000256/6.009, allocations: 47.98 kB / 3.261 GB, free: 266.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009888/6.019, allocations: 8.229 MB / 3.269 GB, free: 258.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.864e-06/6.019, allocations: 7.938 kB / 3.269 GB, free: 258.4 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009115/6.028, allocations: 4.385 MB / 3.273 GB, free: 253.7 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/6.03, allocations: 0.6425 MB / 3.274 GB, free: 253 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009312/6.031, allocations: 43.98 kB / 3.274 GB, free: 253 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002186/6.033, allocations: 183.8 kB / 3.274 GB, free: 252.8 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004952/6.034, allocations: 153.6 kB / 3.274 GB, free: 252.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002226/6.034, allocations: 72.16 kB / 3.274 GB, free: 252.6 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.002888/6.037, allocations: 1.432 MB / 3.275 GB, free: 251.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 8.62e-07/6.037, allocations: 4 kB / 3.275 GB, free: 251.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.006122/6.043, allocations: 1.308 MB / 3.277 GB, free: 249.8 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (166): * Single equations (assignments): 162 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,80.0%) 11} * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.002272/6.045, allocations: 0.8219 MB / 3.277 GB, free: 249.2 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.008222/6.054, allocations: 4.824 MB / 3.282 GB, free: 244.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/6.054, allocations: 4 kB / 3.282 GB, free: 244.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003043/6.057, allocations: 1.834 MB / 3.284 GB, free: 242.5 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/6.06, allocations: 0.5608 MB / 3.285 GB, free: 241.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/6.071, allocations: 5.233 MB / 3.29 GB, free: 236.6 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003113/6.075, allocations: 2.469 MB / 3.292 GB, free: 234.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.005018/6.08, allocations: 1.313 MB / 3.293 GB, free: 232.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000641/6.08, allocations: 151.4 kB / 3.293 GB, free: 232.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.283e-06/6.08, allocations: 3.938 kB / 3.293 GB, free: 232.6 MB / 1.151 GB Notification: Performance of Templates: time 0.07391/6.154, allocations: 46.46 MB / 3.339 GB, free: 186.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches