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.254/2.254, allocations: 390.3 MB / 405.3 MB, free: 13.5 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.001149/0.001149, allocations: 173.2 kB / 498.1 MB, free: 5.758 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.655/1.655, allocations: 223.2 MB / 0.7948 GB, free: 17.95 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.0009098/0.0009098, allocations: 92.31 kB / 0.9346 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003826, allocations: 7 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3509, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.02/5.371, allocations: 1.791 GB / 3.014 GB, free: 193.8 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000316/5.371, allocations: 114.2 kB / 3.014 GB, free: 193.7 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.3346/5.706, allocations: 161.5 MB / 3.172 GB, free: 42.75 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.906e-06/5.706, allocations: 0 / 3.172 GB, free: 42.75 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003386/5.706, allocations: 79.98 kB / 3.172 GB, free: 42.68 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: 812 * Number of variables: 812 Notification: Performance of Generate backend data structure: time 0.01003/5.716, allocations: 3.351 MB / 3.175 GB, free: 39.26 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/5.716, allocations: 8.031 kB / 3.175 GB, free: 39.25 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00477/5.721, allocations: 0.8384 MB / 3.176 GB, free: 38.41 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005032/5.726, allocations: 2.146 MB / 3.178 GB, free: 36.21 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/5.726, allocations: 230.1 kB / 3.179 GB, free: 35.98 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008952/5.727, allocations: 300 kB / 3.179 GB, free: 35.69 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008519/5.736, allocations: 4.357 MB / 3.183 GB, free: 31.19 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.873e-05/5.736, allocations: 0 / 3.183 GB, free: 31.19 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005412/5.736, allocations: 136 kB / 3.183 GB, free: 31.05 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/5.736, allocations: 166 kB / 3.183 GB, free: 30.89 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006111/5.743, allocations: 3.989 MB / 3.187 GB, free: 26.89 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02013/5.763, allocations: 18.64 MB / 3.205 GB, free: 6.797 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002329/5.765, allocations: 1.809 MB / 3.207 GB, free: 4.988 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001839/5.765, allocations: 126.4 kB / 3.207 GB, free: 4.848 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001291/5.767, allocations: 1.092 MB / 3.208 GB, free: 3.707 MB / 1.167 GB Notification: Performance of pre-optimization done (n=147): time 3.366e-06/5.767, allocations: 0 / 3.208 GB, free: 3.707 MB / 1.167 GB Notification: Performance of matching and sorting (n=182): time 0.5439/6.311, allocations: 13.46 MB / 3.222 GB, free: 341.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001441/6.311, allocations: 0.5879 MB / 3.222 GB, free: 341 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003296/6.314, allocations: 1.88 MB / 3.224 GB, free: 340.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003477/6.314, allocations: 58.61 kB / 3.224 GB, free: 340.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001355/6.316, allocations: 1.469 MB / 3.225 GB, free: 340.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006235/6.316, allocations: 0.6156 MB / 3.226 GB, free: 339.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/6.317, allocations: 40.47 kB / 3.226 GB, free: 339.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.000127/6.317, allocations: 391.6 kB / 3.226 GB, free: 339.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/6.318, allocations: 1.098 MB / 3.228 GB, free: 339.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002077/6.32, allocations: 1.691 MB / 3.229 GB, free: 339 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/6.323, allocations: 1.394 MB / 3.231 GB, free: 338.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.083e-05/6.323, allocations: 4.438 kB / 3.231 GB, free: 338.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01014/6.333, allocations: 4.325 MB / 3.235 GB, free: 338.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001054/6.334, allocations: 5.879 MB / 3.241 GB, free: 332.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.773e-05/6.334, allocations: 14.16 kB / 3.241 GB, free: 332.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006654/6.34, allocations: 1.577 MB / 3.242 GB, free: 332.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/6.343, allocations: 480.7 kB / 3.243 GB, free: 332.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008969/6.352, allocations: 6.128 MB / 3.249 GB, free: 330.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002647/6.355, allocations: 211.1 kB / 3.249 GB, free: 330.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/6.355, allocations: 91.81 kB / 3.249 GB, free: 330.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/6.355, allocations: 3.469 kB / 3.249 GB, free: 330.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007119/6.362, allocations: 3.6 MB / 3.252 GB, free: 330.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.831e-05/6.362, allocations: 15.16 kB / 3.252 GB, free: 330.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003658/6.366, allocations: 1.031 MB / 3.253 GB, free: 330.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/6.368, allocations: 0.4911 MB / 3.254 GB, free: 330.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006456/6.375, allocations: 5.148 MB / 3.259 GB, free: 329.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002206/6.377, allocations: 178.6 kB / 3.259 GB, free: 329.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/6.377, allocations: 93.69 kB / 3.259 GB, free: 329.4 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: 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 () * Number of clocked 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.002193/6.379, allocations: 1.233 MB / 3.26 GB, free: 329.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005083/6.38, allocations: 226.7 kB / 3.261 GB, free: 329.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008109/6.388, allocations: 3.876 MB / 3.264 GB, free: 328.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/6.388, allocations: 23.19 kB / 3.264 GB, free: 328.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/6.388, allocations: 5.531 kB / 3.264 GB, free: 328.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/6.388, allocations: 18.3 kB / 3.264 GB, free: 328.9 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01428/6.402, allocations: 9.407 MB / 3.274 GB, free: 327.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/6.402, allocations: 3.781 kB / 3.274 GB, free: 327.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/6.404, allocations: 336.1 kB / 3.274 GB, free: 327.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005368/6.409, allocations: 1.522 MB / 3.275 GB, free: 327.5 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002467/6.409, allocations: 44.45 kB / 3.275 GB, free: 327.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/6.42, allocations: 8.679 MB / 3.284 GB, free: 325 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/6.42, allocations: 7.531 kB / 3.284 GB, free: 325 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008096/6.428, allocations: 4.522 MB / 3.288 GB, free: 323 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0017/6.429, allocations: 0.6411 MB / 3.289 GB, free: 322.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004076/6.43, allocations: 42.27 kB / 3.289 GB, free: 322.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/6.431, allocations: 178.7 kB / 3.289 GB, free: 322.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003844/6.432, allocations: 159.3 kB / 3.289 GB, free: 322.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/6.432, allocations: 60.45 kB / 3.289 GB, free: 322.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001861/6.434, allocations: 1.463 MB / 3.291 GB, free: 322 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.4e-07/6.434, allocations: 0 / 3.291 GB, free: 322 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004174/6.438, allocations: 1.317 MB / 3.292 GB, free: 321.9 MB / 1.167 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) * Number of clocked states: 0 () * 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.001837/6.44, allocations: 0.8723 MB / 3.293 GB, free: 321.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.007416/6.447, allocations: 4.886 MB / 3.298 GB, free: 320 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/6.447, allocations: 3.781 kB / 3.298 GB, free: 320 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002851/6.45, allocations: 1.874 MB / 3.3 GB, free: 319.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/6.453, allocations: 0.5648 MB / 3.3 GB, free: 319.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009876/6.462, allocations: 7.667 MB / 3.308 GB, free: 315 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001853/6.464, allocations: 2.457 MB / 3.31 GB, free: 314 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00286/6.467, allocations: 1.013 MB / 3.311 GB, free: 313.9 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004993/6.468, allocations: 189.9 kB / 3.311 GB, free: 313.8 MB / 1.167 GB Notification: Performance of SimCode: time 8.92e-07/6.468, allocations: 0 / 3.311 GB, free: 313.8 MB / 1.167 GB Notification: Performance of Templates: time 0.06094/6.529, allocations: 43.74 MB / 3.354 GB, free: 307.1 MB / 1.167 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