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_N.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_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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.546/1.546, allocations: 249.5 MB / 257 MB, free: 6.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 180.8 kB / 316.3 MB, free: 3.246 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.48/1.48, allocations: 205.3 MB / 0.5671 GB, free: 15.79 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.0008776/0.0008777, allocations: 91.47 kB / 0.6714 GB, free: 4.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.875e-05/1.878e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2012, allocations: 106.3 MB / 0.8852 GB, free: 12.23 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.32/5.521, allocations: 2.25 GB / 3.135 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/5.522, allocations: 105.9 kB / 3.135 GB, free: 115.6 MB / 0.8698 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.7714/6.293, allocations: 139.2 MB / 3.271 GB, free: 239.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.974e-06/6.293, allocations: 0 / 3.271 GB, free: 239.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.000263/6.294, allocations: 84.25 kB / 3.272 GB, free: 239.6 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.0087/6.302, allocations: 2.992 MB / 3.274 GB, free: 238.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/6.302, allocations: 9.844 kB / 3.274 GB, free: 238.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005999/6.308, allocations: 0.829 MB / 3.275 GB, free: 238.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006486/6.315, allocations: 2.123 MB / 3.277 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/6.315, allocations: 100.8 kB / 3.277 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/6.316, allocations: 176.9 kB / 3.278 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009484/6.326, allocations: 3.472 MB / 3.281 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00948/6.335, allocations: 3.851 MB / 3.285 GB, free: 237.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-05/6.335, allocations: 5.438 kB / 3.285 GB, free: 237.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003344/6.336, allocations: 3.938 kB / 3.285 GB, free: 237.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002385/6.336, allocations: 170.3 kB / 3.285 GB, free: 237.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02526/6.361, allocations: 17.83 MB / 3.302 GB, free: 227.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002226/6.364, allocations: 1.688 MB / 3.304 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009586/6.365, allocations: 0.8833 MB / 3.305 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002035/6.365, allocations: 129 kB / 3.305 GB, free: 227.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001324/6.366, allocations: 1.02 MB / 3.306 GB, free: 227.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=147): time 5.47e-06/6.366, allocations: 0 / 3.306 GB, free: 227.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=182): time 0.01739/6.384, allocations: 10.38 MB / 3.316 GB, free: 222.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/6.384, allocations: 0.5866 MB / 3.317 GB, free: 222.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/6.386, allocations: 1.678 MB / 3.318 GB, free: 222 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003419/6.387, allocations: 25.7 kB / 3.318 GB, free: 222 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001372/6.388, allocations: 1.474 MB / 3.32 GB, free: 221.3 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000552/6.389, allocations: 0.5856 MB / 3.32 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/6.389, allocations: 0 / 3.32 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001279/6.389, allocations: 399 kB / 3.321 GB, free: 220.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001251/6.39, allocations: 1.025 MB / 3.322 GB, free: 220.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/6.392, allocations: 1.604 MB / 3.323 GB, free: 219.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/6.394, allocations: 1.404 MB / 3.325 GB, free: 219.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/6.394, allocations: 7.875 kB / 3.325 GB, free: 219.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.007574/6.401, allocations: 3.91 MB / 3.328 GB, free: 218 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001159/6.402, allocations: 5.824 MB / 3.334 GB, free: 211.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-05/6.402, allocations: 14.12 kB / 3.334 GB, free: 211.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00391/6.406, allocations: 1.103 MB / 3.335 GB, free: 211.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002035/6.408, allocations: 488.7 kB / 3.336 GB, free: 211.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006645/6.415, allocations: 5.594 MB / 3.341 GB, free: 208.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002515/6.418, allocations: 173.8 kB / 3.341 GB, free: 208.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002595/6.418, allocations: 95.84 kB / 3.341 GB, free: 208.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/6.418, allocations: 2.906 kB / 3.341 GB, free: 208.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004096/6.422, allocations: 2.325 MB / 3.344 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.51e-05/6.422, allocations: 16.41 kB / 3.344 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.196e-05/6.422, allocations: 27.28 kB / 3.344 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/6.424, allocations: 0.5163 MB / 3.344 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.096e-05/6.424, allocations: 38.39 kB / 3.344 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/6.426, allocations: 112.9 kB / 3.344 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002338/6.426, allocations: 96.75 kB / 3.344 GB, free: 207.3 MB / 0.8698 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.0006087/6.427, allocations: 169.9 kB / 3.345 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007298/6.428, allocations: 212.9 kB / 3.345 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008297/6.436, allocations: 3.653 MB / 3.348 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/6.436, allocations: 22.8 kB / 3.348 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/6.436, allocations: 7.5 kB / 3.348 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/6.436, allocations: 14.48 kB / 3.348 GB, free: 205.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/6.451, allocations: 8.568 MB / 3.357 GB, free: 202.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/6.451, allocations: 7.312 kB / 3.357 GB, free: 202.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/6.453, allocations: 331.9 kB / 3.357 GB, free: 202.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004447/6.457, allocations: 1.38 MB / 3.359 GB, free: 202 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002161/6.457, allocations: 31.38 kB / 3.359 GB, free: 202 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01004/6.467, allocations: 7.845 MB / 3.366 GB, free: 197.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/6.467, allocations: 8.625 kB / 3.366 GB, free: 197.3 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008364/6.476, allocations: 4.313 MB / 3.37 GB, free: 195.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/6.477, allocations: 0.6251 MB / 3.371 GB, free: 194.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007724/6.478, allocations: 7.812 kB / 3.371 GB, free: 194.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00219/6.48, allocations: 205.2 kB / 3.371 GB, free: 194.8 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005182/6.481, allocations: 151 kB / 3.371 GB, free: 194.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/6.481, allocations: 58.94 kB / 3.371 GB, free: 194.8 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.003685/6.485, allocations: 1.284 MB / 3.373 GB, free: 194.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.41e-07/6.485, allocations: 0 / 3.373 GB, free: 194.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.007588/6.492, allocations: 1.11 MB / 3.374 GB, free: 194.2 MB / 0.8698 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.001892/6.494, allocations: 0.6344 MB / 3.374 GB, free: 194 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.007063/6.501, allocations: 4.128 MB / 3.378 GB, free: 192.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/6.501, allocations: 3.969 kB / 3.378 GB, free: 192.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003044/6.505, allocations: 1.771 MB / 3.38 GB, free: 191.8 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/6.508, allocations: 0.5045 MB / 3.381 GB, free: 191.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/6.519, allocations: 5.092 MB / 3.386 GB, free: 189.6 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003362/6.522, allocations: 2.451 MB / 3.388 GB, free: 188.6 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.004627/6.527, allocations: 1.308 MB / 3.389 GB, free: 188.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004842/6.527, allocations: 154.7 kB / 3.389 GB, free: 188.4 MB / 0.8698 GB Notification: Performance of SimCode: time 1.153e-06/6.527, allocations: 4 kB / 3.389 GB, free: 188.4 MB / 0.8698 GB Notification: Performance of Templates: time 0.05745/6.585, allocations: 40.02 MB / 3.429 GB, free: 160.2 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches