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.41/1.41, allocations: 249.5 MB / 257 MB, free: 6.938 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.0009411/0.0009411, allocations: 172.9 kB / 316.3 MB, free: 3.27 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.413/1.413, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.000811/0.000811, allocations: 95.62 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.505e-05/1.506e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2009, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.276/5.477, allocations: 2.249 GB / 3.134 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/5.477, allocations: 111.9 kB / 3.134 GB, free: 157.2 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.3121/5.79, allocations: 149.8 MB / 3.28 GB, free: 6.078 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.675e-06/5.79, allocations: 4 kB / 3.28 GB, free: 6.074 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0002172/5.79, allocations: 87.92 kB / 3.28 GB, free: 5.988 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.005469/5.795, allocations: 3.062 MB / 3.283 GB, free: 2.867 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/5.795, allocations: 8.031 kB / 3.283 GB, free: 2.859 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003885/5.799, allocations: 0.8304 MB / 3.284 GB, free: 2.023 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5581/6.357, allocations: 2.274 MB / 3.286 GB, free: 224 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002959/6.358, allocations: 100.2 kB / 3.286 GB, free: 224 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001313/6.359, allocations: 177.4 kB / 3.286 GB, free: 224 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008415/6.367, allocations: 3.516 MB / 3.29 GB, free: 224 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00922/6.377, allocations: 3.916 MB / 3.294 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-05/6.377, allocations: 2.906 kB / 3.294 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003045/6.377, allocations: 6.609 kB / 3.294 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002413/6.377, allocations: 178.4 kB / 3.294 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02465/6.402, allocations: 19.11 MB / 3.313 GB, free: 213.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002719/6.405, allocations: 1.747 MB / 3.314 GB, free: 213.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002012/6.407, allocations: 1.117 MB / 3.315 GB, free: 213.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002913/6.407, allocations: 131.8 kB / 3.315 GB, free: 213.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001825/6.409, allocations: 1.041 MB / 3.317 GB, free: 213.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=150): time 3.676e-06/6.409, allocations: 0 / 3.317 GB, free: 213.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=187): time 0.02094/6.43, allocations: 9.869 MB / 3.326 GB, free: 209.6 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002542/6.43, allocations: 0.5086 MB / 3.327 GB, free: 209 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/6.435, allocations: 1.867 MB / 3.328 GB, free: 208.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0006722/6.436, allocations: 32.14 kB / 3.329 GB, free: 208.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001934/6.438, allocations: 1.52 MB / 3.33 GB, free: 208.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008804/6.438, allocations: 0.5971 MB / 3.331 GB, free: 207.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/6.439, allocations: 0 / 3.331 GB, free: 207.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001419/6.439, allocations: 386.1 kB / 3.331 GB, free: 207.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/6.44, allocations: 1.064 MB / 3.332 GB, free: 207.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002013/6.442, allocations: 1.573 MB / 3.334 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002329/6.445, allocations: 1.383 MB / 3.335 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.805e-05/6.445, allocations: 3.188 kB / 3.335 GB, free: 207.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01006/6.455, allocations: 4.196 MB / 3.339 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.00103/6.456, allocations: 4.631 MB / 3.343 GB, free: 202 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/6.456, allocations: 14.91 kB / 3.344 GB, free: 202 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005289/6.461, allocations: 1.354 MB / 3.345 GB, free: 201.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002195/6.463, allocations: 472.2 kB / 3.345 GB, free: 201.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009497/6.473, allocations: 9.078 MB / 3.354 GB, free: 196.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00321/6.476, allocations: 158 kB / 3.354 GB, free: 196.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003536/6.477, allocations: 89.52 kB / 3.354 GB, free: 196.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/6.477, allocations: 5.031 kB / 3.354 GB, free: 196.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004401/6.481, allocations: 2.175 MB / 3.357 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/6.481, allocations: 11.25 kB / 3.357 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.755e-05/6.481, allocations: 25.31 kB / 3.357 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001947/6.483, allocations: 0.5032 MB / 3.357 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.544e-05/6.483, allocations: 30.14 kB / 3.357 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002238/6.485, allocations: 109.5 kB / 3.357 GB, free: 196.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/6.486, allocations: 88.36 kB / 3.357 GB, free: 196.7 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.0008332/6.486, allocations: 167.1 kB / 3.357 GB, free: 196.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006355/6.487, allocations: 223.5 kB / 3.358 GB, free: 196.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009336/6.496, allocations: 4.241 MB / 3.362 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/6.496, allocations: 22.39 kB / 3.362 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/6.496, allocations: 7.656 kB / 3.362 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-05/6.497, allocations: 7.453 kB / 3.362 GB, free: 195.4 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01438/6.511, allocations: 8.733 MB / 3.37 GB, free: 191.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/6.511, allocations: 5.594 kB / 3.37 GB, free: 191.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001411/6.512, allocations: 363.7 kB / 3.371 GB, free: 191.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006052/6.518, allocations: 1.789 MB / 3.372 GB, free: 191.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002535/6.519, allocations: 29.08 kB / 3.372 GB, free: 191.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01333/6.532, allocations: 12.5 MB / 3.385 GB, free: 182 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/6.532, allocations: 9.719 kB / 3.385 GB, free: 182 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/6.542, allocations: 4.591 MB / 3.389 GB, free: 180 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/6.544, allocations: 0.684 MB / 3.39 GB, free: 179.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006872/6.544, allocations: 9.859 kB / 3.39 GB, free: 179.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/6.547, allocations: 232 kB / 3.39 GB, free: 179.6 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003841/6.547, allocations: 149.8 kB / 3.39 GB, free: 179.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/6.547, allocations: 66.48 kB / 3.39 GB, free: 179.5 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002596/6.55, allocations: 1.425 MB / 3.392 GB, free: 178.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.61e-07/6.55, allocations: 3.531 kB / 3.392 GB, free: 178.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.005678/6.556, allocations: 1.133 MB / 3.393 GB, free: 178.9 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.001753/6.557, allocations: 0.634 MB / 3.393 GB, free: 178.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.007569/6.565, allocations: 4.411 MB / 3.398 GB, free: 177 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/6.565, allocations: 2.406 kB / 3.398 GB, free: 177 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003632/6.569, allocations: 2.222 MB / 3.4 GB, free: 175.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003627/6.572, allocations: 0.531 MB / 3.4 GB, free: 175.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/6.584, allocations: 5.235 MB / 3.405 GB, free: 173.6 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/6.587, allocations: 2.533 MB / 3.408 GB, free: 172.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.005093/6.592, allocations: 1.38 MB / 3.409 GB, free: 172.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005204/6.593, allocations: 158.8 kB / 3.409 GB, free: 172.4 MB / 0.8698 GB Notification: Performance of SimCode: time 7.61e-07/6.593, allocations: 0 / 3.409 GB, free: 172.4 MB / 0.8698 GB Notification: Performance of Templates: time 0.06921/6.662, allocations: 43.18 MB / 3.452 GB, free: 162.2 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