Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.344/2.344, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001138/0.001138, allocations: 186.8 kB / 0.4902 GB, free: 2.227 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.585/1.585, allocations: 223.1 MB / 0.7992 GB, free: 15.56 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.001296/0.001296, allocations: 98.16 kB / 0.9396 GB, free: 2.785 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000539/0.000539, allocations: 10.66 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3911/0.3917, allocations: 143 MB / 1.229 GB, free: 85.46 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.916/5.308, allocations: 1.792 GB / 3.021 GB, free: 169.9 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003806/5.308, allocations: 119.3 kB / 3.021 GB, free: 169.8 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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.3424/5.651, allocations: 161.5 MB / 3.179 GB, free: 6.879 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.394e-06/5.651, allocations: 4 kB / 3.179 GB, free: 6.875 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003716/5.651, allocations: 79.94 kB / 3.179 GB, free: 6.797 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.01018/5.662, allocations: 3.353 MB / 3.183 GB, free: 3.375 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/5.662, allocations: 8.562 kB / 3.183 GB, free: 3.367 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005111/5.667, allocations: 0.8384 MB / 3.183 GB, free: 2.523 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005195/5.672, allocations: 2.134 MB / 3.185 GB, free: 344 kB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/5.672, allocations: 234.1 kB / 3.186 GB, free: 108 kB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.6198/6.292, allocations: 302.7 kB / 3.186 GB, free: 338.6 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01744/6.309, allocations: 4.351 MB / 3.19 GB, free: 338.2 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/6.31, allocations: 2.891 kB / 3.19 GB, free: 338.2 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005714/6.31, allocations: 132.5 kB / 3.19 GB, free: 338.2 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003395/6.311, allocations: 170.9 kB / 3.19 GB, free: 338.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01281/6.323, allocations: 3.991 MB / 3.194 GB, free: 338.1 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03901/6.362, allocations: 18.62 MB / 3.213 GB, free: 328.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005112/6.368, allocations: 1.804 MB / 3.214 GB, free: 328.8 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004218/6.368, allocations: 135.5 kB / 3.214 GB, free: 328.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003896/6.372, allocations: 1.091 MB / 3.216 GB, free: 328.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=147): time 1.668e-05/6.372, allocations: 1 kB / 3.216 GB, free: 328.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=182): time 0.04136/6.413, allocations: 13.46 MB / 3.229 GB, free: 323.9 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/6.414, allocations: 0.5853 MB / 3.229 GB, free: 323.2 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003377/6.417, allocations: 1.881 MB / 3.231 GB, free: 322.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0004485/6.417, allocations: 59.52 kB / 3.231 GB, free: 322.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001336/6.419, allocations: 1.47 MB / 3.233 GB, free: 322.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000585/6.419, allocations: 0.6097 MB / 3.233 GB, free: 322.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/6.42, allocations: 41.97 kB / 3.233 GB, free: 322.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001164/6.42, allocations: 392.6 kB / 3.234 GB, free: 321.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/6.421, allocations: 1.102 MB / 3.235 GB, free: 321.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00228/6.424, allocations: 1.688 MB / 3.236 GB, free: 321.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/6.425, allocations: 1.407 MB / 3.238 GB, free: 321.1 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/6.426, allocations: 3.969 kB / 3.238 GB, free: 321.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.008756/6.434, allocations: 4.323 MB / 3.242 GB, free: 320.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001208/6.436, allocations: 5.872 MB / 3.248 GB, free: 314.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.902e-05/6.436, allocations: 16.31 kB / 3.248 GB, free: 314.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005842/6.441, allocations: 1.581 MB / 3.249 GB, free: 314.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/6.444, allocations: 482.8 kB / 3.25 GB, free: 314.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007558/6.451, allocations: 6.127 MB / 3.256 GB, free: 312.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002926/6.454, allocations: 208.4 kB / 3.256 GB, free: 312.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/6.454, allocations: 96.3 kB / 3.256 GB, free: 312.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/6.454, allocations: 7.766 kB / 3.256 GB, free: 312.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007344/6.462, allocations: 3.604 MB / 3.259 GB, free: 312.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.336e-05/6.462, allocations: 15.25 kB / 3.259 GB, free: 312.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00384/6.466, allocations: 1.027 MB / 3.26 GB, free: 312.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002203/6.468, allocations: 0.4924 MB / 3.261 GB, free: 312.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006807/6.475, allocations: 5.129 MB / 3.266 GB, free: 311.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/6.477, allocations: 175.2 kB / 3.266 GB, free: 311.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002292/6.478, allocations: 90.92 kB / 3.266 GB, free: 311.5 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.002533/6.48, allocations: 1.247 MB / 3.267 GB, free: 311.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000626/6.481, allocations: 221.3 kB / 3.268 GB, free: 311.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008205/6.489, allocations: 3.879 MB / 3.271 GB, free: 311 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/6.489, allocations: 20.81 kB / 3.271 GB, free: 311 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/6.489, allocations: 8.844 kB / 3.271 GB, free: 311 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.987e-05/6.489, allocations: 10.23 kB / 3.271 GB, free: 311 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/6.504, allocations: 9.423 MB / 3.281 GB, free: 307.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/6.504, allocations: 10.03 kB / 3.281 GB, free: 307.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001237/6.505, allocations: 328.5 kB / 3.281 GB, free: 307.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00533/6.511, allocations: 1.518 MB / 3.282 GB, free: 307.6 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002329/6.511, allocations: 46.66 kB / 3.283 GB, free: 307.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/6.521, allocations: 8.683 MB / 3.291 GB, free: 302.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/6.521, allocations: 7.125 kB / 3.291 GB, free: 302.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008352/6.53, allocations: 4.518 MB / 3.295 GB, free: 300.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/6.532, allocations: 0.6419 MB / 3.296 GB, free: 299.7 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004098/6.532, allocations: 47.06 kB / 3.296 GB, free: 299.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00148/6.534, allocations: 178.3 kB / 3.296 GB, free: 299.7 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003981/6.534, allocations: 156.3 kB / 3.296 GB, free: 299.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/6.534, allocations: 62.91 kB / 3.296 GB, free: 299.6 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001983/6.536, allocations: 1.456 MB / 3.298 GB, free: 299.1 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.71e-07/6.536, allocations: 4.625 kB / 3.298 GB, free: 299.1 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004207/6.54, allocations: 1.304 MB / 3.299 GB, free: 298.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.001922/6.542, allocations: 0.8764 MB / 3.3 GB, free: 298.7 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00811/6.55, allocations: 4.883 MB / 3.305 GB, free: 297 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/6.55, allocations: 3.75 kB / 3.305 GB, free: 297 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003065/6.553, allocations: 1.889 MB / 3.307 GB, free: 296.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/6.556, allocations: 0.5644 MB / 3.307 GB, free: 296.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/6.567, allocations: 7.662 MB / 3.315 GB, free: 292 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002054/6.569, allocations: 2.459 MB / 3.317 GB, free: 290.9 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.00315/6.572, allocations: 1.016 MB / 3.318 GB, free: 290.8 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000537/6.573, allocations: 195.6 kB / 3.318 GB, free: 290.8 MB / 1.167 GB Notification: Performance of SimCode: time 2.194e-06/6.573, allocations: 0 / 3.318 GB, free: 290.8 MB / 1.167 GB Notification: Performance of Templates: time 0.06418/6.637, allocations: 43.75 MB / 3.361 GB, free: 276 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.sim & ./Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.csv","../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches