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.188/2.188, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001267/0.001267, allocations: 173.2 kB / 498.1 MB, free: 5.738 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.649/1.649, allocations: 223.2 MB / 0.7948 GB, free: 17.86 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.001063/0.001063, allocations: 99.89 kB / 0.9346 GB, free: 6.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003857, allocations: 12.84 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3339, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.012/5.346, allocations: 1.79 GB / 3.013 GB, free: 226.5 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000418/5.346, allocations: 116.8 kB / 3.013 GB, free: 226.4 MB / 1.167 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 0.3674/5.714, allocations: 171.2 MB / 3.18 GB, free: 53.73 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.775e-06/5.714, allocations: 0 / 3.18 GB, free: 53.73 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0004716/5.714, allocations: 87.92 kB / 3.18 GB, free: 53.64 MB / 1.167 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.01244/5.727, allocations: 3.471 MB / 3.183 GB, free: 50.11 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/5.727, allocations: 12.03 kB / 3.183 GB, free: 50.09 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00584/5.733, allocations: 0.8421 MB / 3.184 GB, free: 49.25 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007731/5.74, allocations: 2.289 MB / 3.186 GB, free: 46.91 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002546/5.741, allocations: 234.2 kB / 3.187 GB, free: 46.68 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001685/5.742, allocations: 308 kB / 3.187 GB, free: 46.38 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0143/5.757, allocations: 4.428 MB / 3.191 GB, free: 41.79 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000196/5.757, allocations: 7.938 kB / 3.191 GB, free: 41.78 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0014/5.758, allocations: 132 kB / 3.191 GB, free: 41.65 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002383/5.759, allocations: 178 kB / 3.191 GB, free: 41.47 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009398/5.768, allocations: 4.032 MB / 3.195 GB, free: 37.43 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0325/5.801, allocations: 19.91 MB / 3.215 GB, free: 15.95 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003505/5.804, allocations: 1.873 MB / 3.217 GB, free: 14.08 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003743/5.805, allocations: 138.4 kB / 3.217 GB, free: 13.93 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002162/5.807, allocations: 1.105 MB / 3.218 GB, free: 12.78 MB / 1.167 GB Notification: Performance of pre-optimization done (n=150): time 8.005e-06/5.807, allocations: 4 kB / 3.218 GB, free: 12.78 MB / 1.167 GB Notification: Performance of matching and sorting (n=187): time 0.717/6.524, allocations: 13.42 MB / 3.231 GB, free: 339.3 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/6.524, allocations: 0.5062 MB / 3.232 GB, free: 338.7 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003351/6.527, allocations: 2.07 MB / 3.234 GB, free: 338.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003967/6.528, allocations: 60.61 kB / 3.234 GB, free: 338.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001294/6.529, allocations: 1.514 MB / 3.235 GB, free: 338.3 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006027/6.53, allocations: 0.6314 MB / 3.236 GB, free: 338 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/6.53, allocations: 38.84 kB / 3.236 GB, free: 338 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001175/6.53, allocations: 386.9 kB / 3.236 GB, free: 337.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/6.532, allocations: 1.127 MB / 3.237 GB, free: 337.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002161/6.534, allocations: 1.657 MB / 3.239 GB, free: 337.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002001/6.536, allocations: 1.389 MB / 3.24 GB, free: 337.2 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/6.536, allocations: 3.219 kB / 3.24 GB, free: 337.2 MB / 1.167 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01237/6.548, allocations: 4.732 MB / 3.245 GB, free: 336.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009283/6.549, allocations: 4.66 MB / 3.249 GB, free: 332.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.723e-05/6.549, allocations: 14.5 kB / 3.249 GB, free: 332.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008952/6.558, allocations: 2.055 MB / 3.251 GB, free: 332.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/6.561, allocations: 477.4 kB / 3.252 GB, free: 332.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/6.572, allocations: 9.852 MB / 3.261 GB, free: 326.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002472/6.574, allocations: 191.6 kB / 3.262 GB, free: 326.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002378/6.575, allocations: 90.27 kB / 3.262 GB, free: 326.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/6.575, allocations: 3.938 kB / 3.262 GB, free: 326.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008376/6.583, allocations: 3.875 MB / 3.265 GB, free: 326.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/6.583, allocations: 10.72 kB / 3.266 GB, free: 326.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005294/6.588, allocations: 1.381 MB / 3.267 GB, free: 326.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/6.59, allocations: 492.2 kB / 3.267 GB, free: 326.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008375/6.599, allocations: 7.84 MB / 3.275 GB, free: 322.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00235/6.601, allocations: 169.9 kB / 3.275 GB, free: 322.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002417/6.601, allocations: 85.05 kB / 3.275 GB, free: 322.9 MB / 1.167 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "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 () * Number of clocked 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.002181/6.604, allocations: 1.272 MB / 3.276 GB, free: 322.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005241/6.604, allocations: 232 kB / 3.277 GB, free: 322.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01122/6.615, allocations: 4.521 MB / 3.281 GB, free: 322.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.651e-05/6.615, allocations: 21.53 kB / 3.281 GB, free: 322.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.625e-05/6.615, allocations: 4.094 kB / 3.281 GB, free: 322.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.872e-05/6.615, allocations: 13.47 kB / 3.281 GB, free: 322.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01796/6.633, allocations: 9.603 MB / 3.291 GB, free: 321.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/6.633, allocations: 7.656 kB / 3.291 GB, free: 321.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/6.635, allocations: 359.7 kB / 3.291 GB, free: 321.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007273/6.642, allocations: 2.001 MB / 3.293 GB, free: 321.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002237/6.642, allocations: 47.36 kB / 3.293 GB, free: 321.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01301/6.655, allocations: 13.65 MB / 3.306 GB, free: 313.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/6.655, allocations: 7.25 kB / 3.306 GB, free: 313.5 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/6.666, allocations: 4.854 MB / 3.311 GB, free: 311.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002217/6.668, allocations: 0.6929 MB / 3.312 GB, free: 311.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004022/6.668, allocations: 43.59 kB / 3.312 GB, free: 311.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/6.67, allocations: 195.1 kB / 3.312 GB, free: 311.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/6.67, allocations: 152.5 kB / 3.312 GB, free: 311 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/6.671, allocations: 61.72 kB / 3.312 GB, free: 311 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.002174/6.673, allocations: 1.617 MB / 3.314 GB, free: 310.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.31e-07/6.673, allocations: 3.719 kB / 3.314 GB, free: 310.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.005014/6.678, allocations: 1.325 MB / 3.315 GB, free: 310.3 MB / 1.167 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) * Number of clocked states: 0 () * 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.001998/6.68, allocations: 0.8797 MB / 3.316 GB, free: 310.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.008877/6.689, allocations: 5.415 MB / 3.321 GB, free: 307.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/6.689, allocations: 0 / 3.321 GB, free: 307.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003507/6.692, allocations: 2.341 MB / 3.323 GB, free: 306.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003631/6.696, allocations: 0.5814 MB / 3.324 GB, free: 306.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/6.713, allocations: 7.91 MB / 3.332 GB, free: 302.3 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/6.715, allocations: 2.538 MB / 3.334 GB, free: 301.2 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.003158/6.718, allocations: 1.019 MB / 3.335 GB, free: 301.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006022/6.718, allocations: 206.1 kB / 3.335 GB, free: 301.1 MB / 1.167 GB Notification: Performance of SimCode: time 9.12e-07/6.718, allocations: 0 / 3.335 GB, free: 301.1 MB / 1.167 GB Notification: Performance of Templates: time 0.07013/6.789, allocations: 47.5 MB / 3.382 GB, free: 296.4 MB / 1.167 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