Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.327/1.327, allocations: 251.9 MB / 266.9 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001429/0.001429, allocations: 177.9 kB / 326.5 MB, free: 2.207 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.819/1.819, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008981/0.0008982, allocations: 86.36 kB / 0.6821 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003734, allocations: 12.38 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2677, allocations: 106.3 MB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.303/6.57, allocations: 2.248 GB / 3.148 GB, free: 322.1 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003764/6.571, allocations: 110.4 kB / 3.149 GB, free: 322.1 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33: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 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33: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.3202/6.891, allocations: 157.3 MB / 3.302 GB, free: 176.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.366e-06/6.891, allocations: 0 / 3.302 GB, free: 176.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002477/6.891, allocations: 91.88 kB / 3.302 GB, free: 176.4 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.00773/6.899, allocations: 3.425 MB / 3.306 GB, free: 172.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/6.899, allocations: 11.97 kB / 3.306 GB, free: 172.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004665/6.904, allocations: 0.8304 MB / 3.306 GB, free: 172.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005188/6.909, allocations: 2.292 MB / 3.309 GB, free: 169.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/6.909, allocations: 230.2 kB / 3.309 GB, free: 169.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007392/6.91, allocations: 311.9 kB / 3.309 GB, free: 169.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009332/6.919, allocations: 4.421 MB / 3.313 GB, free: 164.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.898e-05/6.919, allocations: 7.938 kB / 3.313 GB, free: 164.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003574/6.92, allocations: 132 kB / 3.314 GB, free: 164.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/6.92, allocations: 178 kB / 3.314 GB, free: 164.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006447/6.926, allocations: 4.021 MB / 3.318 GB, free: 160.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02206/6.948, allocations: 19.85 MB / 3.337 GB, free: 138.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002446/6.951, allocations: 1.881 MB / 3.339 GB, free: 137 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002159/6.951, allocations: 130.4 kB / 3.339 GB, free: 136.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001302/6.953, allocations: 1.108 MB / 3.34 GB, free: 135.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=150): time 3.447e-06/6.953, allocations: 0 / 3.34 GB, free: 135.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=187): time 0.03069/6.983, allocations: 13.42 MB / 3.353 GB, free: 122.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/6.983, allocations: 0.51 MB / 3.354 GB, free: 121.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/6.986, allocations: 2.06 MB / 3.356 GB, free: 119.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004822/6.987, allocations: 57.7 kB / 3.356 GB, free: 119.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001254/6.988, allocations: 1.512 MB / 3.357 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005908/6.989, allocations: 0.6161 MB / 3.358 GB, free: 117.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/6.989, allocations: 44 kB / 3.358 GB, free: 117.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001246/6.989, allocations: 393.8 kB / 3.358 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/6.991, allocations: 1.124 MB / 3.359 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/6.992, allocations: 1.655 MB / 3.361 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001703/6.994, allocations: 1.391 MB / 3.362 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/6.994, allocations: 4 kB / 3.362 GB, free: 112.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01019/7.004, allocations: 4.727 MB / 3.367 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009367/7.005, allocations: 4.658 MB / 3.371 GB, free: 102.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/7.005, allocations: 12 kB / 3.371 GB, free: 102.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00788/7.013, allocations: 2.061 MB / 3.374 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002229/7.015, allocations: 479.2 kB / 3.374 GB, free: 100.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/7.026, allocations: 9.848 MB / 3.384 GB, free: 89.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002954/7.029, allocations: 195.7 kB / 3.384 GB, free: 89.54 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003175/7.029, allocations: 87.97 kB / 3.384 GB, free: 89.45 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/7.029, allocations: 4 kB / 3.384 GB, free: 89.45 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009471/7.038, allocations: 3.871 MB / 3.388 GB, free: 85.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.256e-05/7.038, allocations: 12 kB / 3.388 GB, free: 85.55 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007134/7.046, allocations: 1.387 MB / 3.389 GB, free: 84.16 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002953/7.049, allocations: 491.2 kB / 3.389 GB, free: 83.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/7.061, allocations: 7.832 MB / 3.397 GB, free: 75.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/7.064, allocations: 167.8 kB / 3.397 GB, free: 75.28 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006421/7.065, allocations: 83.98 kB / 3.397 GB, free: 75.2 MB / 0.8855 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.004092/7.069, allocations: 1.265 MB / 3.399 GB, free: 73.92 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001481/7.07, allocations: 237.2 kB / 3.399 GB, free: 73.69 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01579/7.086, allocations: 4.514 MB / 3.403 GB, free: 69.14 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.78e-05/7.086, allocations: 20 kB / 3.403 GB, free: 69.12 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.095e-05/7.086, allocations: 4 kB / 3.403 GB, free: 69.12 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.56e-05/7.087, allocations: 11.97 kB / 3.403 GB, free: 69.11 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02205/7.109, allocations: 9.596 MB / 3.413 GB, free: 59.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.661e-05/7.109, allocations: 4 kB / 3.413 GB, free: 59.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/7.11, allocations: 363.4 kB / 3.413 GB, free: 58.99 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007059/7.117, allocations: 2.007 MB / 3.415 GB, free: 56.96 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003798/7.118, allocations: 43.98 kB / 3.415 GB, free: 56.92 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/7.131, allocations: 13.66 MB / 3.428 GB, free: 42.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/7.131, allocations: 7.938 kB / 3.428 GB, free: 42.45 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009964/7.141, allocations: 4.847 MB / 3.433 GB, free: 37.35 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/7.143, allocations: 0.6892 MB / 3.434 GB, free: 36.64 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004188/7.143, allocations: 43.98 kB / 3.434 GB, free: 36.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/7.145, allocations: 191.8 kB / 3.434 GB, free: 36.41 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003828/7.145, allocations: 157.6 kB / 3.434 GB, free: 36.25 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/7.145, allocations: 63.98 kB / 3.434 GB, free: 36.19 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002035/7.148, allocations: 1.602 MB / 3.436 GB, free: 34.57 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.91e-07/7.148, allocations: 0 / 3.436 GB, free: 34.57 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003577/7.151, allocations: 1.285 MB / 3.437 GB, free: 33.29 MB / 0.8855 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.001453/7.153, allocations: 0.7396 MB / 3.438 GB, free: 32.69 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.008295/7.161, allocations: 5.418 MB / 3.443 GB, free: 27.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/7.161, allocations: 0 / 3.443 GB, free: 27.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.003421/7.164, allocations: 2.335 MB / 3.445 GB, free: 24.79 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/7.167, allocations: 0.5721 MB / 3.446 GB, free: 24.22 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/7.178, allocations: 7.886 MB / 3.454 GB, free: 16.25 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002085/7.18, allocations: 2.532 MB / 3.456 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003259/7.183, allocations: 1.006 MB / 3.457 GB, free: 12.68 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005477/7.184, allocations: 199.4 kB / 3.457 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of SimCode: time 1.393e-06/7.184, allocations: 0 / 3.457 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of Templates: time 0.4348/7.618, allocations: 46.83 MB / 3.503 GB, free: 229.5 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches