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.38/1.38, allocations: 249.3 MB / 261.8 MB, free: 5.871 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.001013/0.001014, allocations: 178.1 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.316/1.316, allocations: 205.1 MB / 0.572 GB, free: 10.68 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.0007796/0.0007792, allocations: 87.09 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.216e-05/3.219e-05, allocations: 7.984 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1949, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.451/5.646, allocations: 2.248 GB / 3.14 GB, free: 81.94 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/5.646, allocations: 114.2 kB / 3.14 GB, free: 81.88 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.9081/6.555, allocations: 156.5 MB / 3.293 GB, free: 254 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.874e-06/6.555, allocations: 0 / 3.293 GB, free: 254 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003591/6.555, allocations: 88.33 kB / 3.293 GB, free: 254 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.008543/6.564, allocations: 3.066 MB / 3.296 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/6.564, allocations: 7.219 kB / 3.296 GB, free: 252.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005105/6.569, allocations: 0.8276 MB / 3.297 GB, free: 252.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005623/6.574, allocations: 2.273 MB / 3.299 GB, free: 250.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/6.575, allocations: 238.4 kB / 3.299 GB, free: 250.8 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/6.576, allocations: 304.1 kB / 3.3 GB, free: 250.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/6.586, allocations: 4.361 MB / 3.304 GB, free: 248.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/6.587, allocations: 7.219 kB / 3.304 GB, free: 248.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007074/6.587, allocations: 129.4 kB / 3.304 GB, free: 248.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001879/6.587, allocations: 174.9 kB / 3.304 GB, free: 248.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007442/6.595, allocations: 3.927 MB / 3.308 GB, free: 247.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02622/6.621, allocations: 19.87 MB / 3.327 GB, free: 232.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/6.624, allocations: 1.822 MB / 3.329 GB, free: 231.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/6.625, allocations: 0.9412 MB / 3.33 GB, free: 230.8 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/6.625, allocations: 133.2 kB / 3.33 GB, free: 230.7 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001345/6.627, allocations: 1.085 MB / 3.331 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=150): time 5.38e-06/6.627, allocations: 0 / 3.331 GB, free: 230.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=187): time 0.02814/6.655, allocations: 11.84 MB / 3.343 GB, free: 220.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/6.655, allocations: 0.5022 MB / 3.343 GB, free: 219.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002794/6.658, allocations: 2.042 MB / 3.345 GB, free: 217.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003125/6.658, allocations: 57.7 kB / 3.345 GB, free: 217.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001244/6.659, allocations: 1.519 MB / 3.347 GB, free: 216.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004324/6.66, allocations: 0.6235 MB / 3.348 GB, free: 215.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/6.66, allocations: 40 kB / 3.348 GB, free: 215.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001065/6.66, allocations: 385.9 kB / 3.348 GB, free: 215 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/6.661, allocations: 1.093 MB / 3.349 GB, free: 213.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/6.663, allocations: 1.621 MB / 3.351 GB, free: 212.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/6.665, allocations: 1.357 MB / 3.352 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/6.665, allocations: 7.953 kB / 3.352 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.00941/6.674, allocations: 4.551 MB / 3.356 GB, free: 206.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008341/6.675, allocations: 4.655 MB / 3.361 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/6.675, allocations: 12 kB / 3.361 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006432/6.681, allocations: 1.858 MB / 3.363 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001968/6.683, allocations: 479.2 kB / 3.363 GB, free: 198.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009744/6.693, allocations: 9.509 MB / 3.372 GB, free: 188.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003012/6.696, allocations: 199.7 kB / 3.373 GB, free: 188.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/6.696, allocations: 91.91 kB / 3.373 GB, free: 188.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/6.696, allocations: 4 kB / 3.373 GB, free: 188.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007367/6.704, allocations: 3.695 MB / 3.376 GB, free: 184.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.976e-05/6.704, allocations: 12 kB / 3.376 GB, free: 184.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003916/6.708, allocations: 1.177 MB / 3.378 GB, free: 183.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001699/6.709, allocations: 487.2 kB / 3.378 GB, free: 183.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007785/6.717, allocations: 7.523 MB / 3.385 GB, free: 175.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/6.72, allocations: 167.8 kB / 3.385 GB, free: 175.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/6.72, allocations: 83.97 kB / 3.386 GB, free: 175 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: 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 () * 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.0005767/6.72, allocations: 236.8 kB / 3.386 GB, free: 174.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003607/6.721, allocations: 245 kB / 3.386 GB, free: 174.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00955/6.73, allocations: 4.339 MB / 3.39 GB, free: 170.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/6.73, allocations: 28 kB / 3.39 GB, free: 170.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.013e-05/6.73, allocations: 4 kB / 3.39 GB, free: 170.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.198e-05/6.73, allocations: 11.92 kB / 3.39 GB, free: 170.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/6.746, allocations: 9.411 MB / 3.399 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.431e-05/6.746, allocations: 4 kB / 3.4 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/6.747, allocations: 360.1 kB / 3.4 GB, free: 160.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006183/6.753, allocations: 1.819 MB / 3.402 GB, free: 158.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003186/6.754, allocations: 47.98 kB / 3.402 GB, free: 158.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/6.766, allocations: 13.16 MB / 3.415 GB, free: 144.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/6.767, allocations: 7.938 kB / 3.415 GB, free: 144.4 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009173/6.776, allocations: 4.672 MB / 3.419 GB, free: 139.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/6.777, allocations: 0.6892 MB / 3.42 GB, free: 138.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003325/6.778, allocations: 51.94 kB / 3.42 GB, free: 138.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/6.779, allocations: 191.8 kB / 3.42 GB, free: 138.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003695/6.78, allocations: 149.7 kB / 3.42 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/6.78, allocations: 67.98 kB / 3.42 GB, free: 138.3 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001919/6.782, allocations: 1.577 MB / 3.422 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.71e-07/6.782, allocations: 0 / 3.422 GB, free: 136.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003419/6.785, allocations: 1.289 MB / 3.423 GB, free: 135.4 MB / 0.8698 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) * 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.001381/6.786, allocations: 0.6891 MB / 3.424 GB, free: 134.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00783/6.794, allocations: 5.37 MB / 3.429 GB, free: 129.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.617e-06/6.794, allocations: 0 / 3.429 GB, free: 129.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003168/6.798, allocations: 2.292 MB / 3.431 GB, free: 127 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002607/6.8, allocations: 0.5726 MB / 3.432 GB, free: 126.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008709/6.809, allocations: 5.358 MB / 3.437 GB, free: 121 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001899/6.811, allocations: 2.545 MB / 3.439 GB, free: 118.4 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.004061/6.815, allocations: 1.38 MB / 3.441 GB, free: 117 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004421/6.815, allocations: 163.3 kB / 3.441 GB, free: 116.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.673e-06/6.815, allocations: 0 / 3.441 GB, free: 116.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.06421/6.88, allocations: 49.66 MB / 3.489 GB, free: 67.38 MB / 0.8698 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