Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I|tur.vWin|tur.vIn",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sou.S.1.|sen.V|sen.I|tur.vWin|tur.vIn",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.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.443/1.443, allocations: 249.5 MB / 257 MB, free: 6.836 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.001127/0.001127, allocations: 180.9 kB / 316.3 MB, free: 3.227 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.626/1.626, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.001033/0.001033, allocations: 97.47 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.654e-05/1.657e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2175, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.356/5.574, allocations: 2.22 GB / 3.105 GB, free: 186.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/5.574, allocations: 101.6 kB / 3.105 GB, free: 186.5 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1061/5.68, allocations: 50.14 MB / 3.154 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.542e-06/5.68, allocations: 0 / 3.154 GB, free: 136.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.313e-05/5.68, allocations: 39.94 kB / 3.154 GB, free: 136.1 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.001818/5.682, allocations: 1.282 MB / 3.155 GB, free: 134.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/5.682, allocations: 8.031 kB / 3.155 GB, free: 134.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/5.683, allocations: 286.5 kB / 3.156 GB, free: 134.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/5.685, allocations: 0.7911 MB / 3.156 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.838e-05/5.685, allocations: 32 kB / 3.156 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.844e-05/5.685, allocations: 56 kB / 3.156 GB, free: 133.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001558/5.687, allocations: 1.171 MB / 3.158 GB, free: 132.4 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/5.688, allocations: 0.9704 MB / 3.158 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/5.688, allocations: 4 kB / 3.158 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.096e-05/5.688, allocations: 7.984 kB / 3.158 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.063e-05/5.688, allocations: 49.98 kB / 3.159 GB, free: 131.3 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004913/5.693, allocations: 4.168 MB / 3.163 GB, free: 126.9 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009852/5.694, allocations: 0.7325 MB / 3.163 GB, free: 126.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003951/5.694, allocations: 291.1 kB / 3.164 GB, free: 125.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.096e-05/5.695, allocations: 36.8 kB / 3.164 GB, free: 125.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004918/5.695, allocations: 418.4 kB / 3.164 GB, free: 125.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=80): time 2.464e-06/5.695, allocations: 0 / 3.164 GB, free: 125.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80): time 0.0009978/5.696, allocations: 0.6638 MB / 3.165 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/5.696, allocations: 342.9 kB / 3.165 GB, free: 124.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007889/5.697, allocations: 0.778 MB / 3.166 GB, free: 123.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/5.697, allocations: 25.7 kB / 3.166 GB, free: 123.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/5.697, allocations: 0.523 MB / 3.166 GB, free: 123 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/5.697, allocations: 252.2 kB / 3.167 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.228e-05/5.698, allocations: 0 / 3.167 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.363e-05/5.698, allocations: 334 kB / 3.167 GB, free: 122.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/5.698, allocations: 209.5 kB / 3.167 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/5.698, allocations: 393.5 kB / 3.167 GB, free: 121.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/5.699, allocations: 276.4 kB / 3.168 GB, free: 121.5 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.488e-06/5.699, allocations: 8 kB / 3.168 GB, free: 121.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0009334/5.7, allocations: 0.7105 MB / 3.168 GB, free: 120.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/5.7, allocations: 0.9644 MB / 3.169 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/5.7, allocations: 8 kB / 3.169 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001575/5.7, allocations: 28.8 kB / 3.169 GB, free: 119.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006063/5.7, allocations: 167.7 kB / 3.17 GB, free: 119.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002487/5.701, allocations: 0.5445 MB / 3.17 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005986/5.701, allocations: 87.36 kB / 3.17 GB, free: 118.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.301e-05/5.701, allocations: 31.98 kB / 3.17 GB, free: 118.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 7.354e-06/5.701, allocations: 4 kB / 3.17 GB, free: 118.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007575/5.702, allocations: 0.5687 MB / 3.171 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.587e-06/5.702, allocations: 0 / 3.171 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.143e-06/5.702, allocations: 8 kB / 3.171 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005918/5.703, allocations: 175.8 kB / 3.171 GB, free: 118 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/5.703, allocations: 7.938 kB / 3.171 GB, free: 118 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005113/5.703, allocations: 83.62 kB / 3.171 GB, free: 118 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/5.703, allocations: 27.98 kB / 3.171 GB, free: 117.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (94): * Single equations (assignments): 93 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001493/5.704, allocations: 128.7 kB / 3.171 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/5.704, allocations: 102.8 kB / 3.171 GB, free: 117.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/5.705, allocations: 0.8745 MB / 3.172 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/5.705, allocations: 15.95 kB / 3.172 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/5.705, allocations: 4 kB / 3.172 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/5.705, allocations: 3.984 kB / 3.172 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/5.707, allocations: 2.087 MB / 3.174 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/5.707, allocations: 0 / 3.174 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/5.708, allocations: 159.9 kB / 3.174 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.151e-05/5.708, allocations: 32.78 kB / 3.174 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/5.708, allocations: 15.98 kB / 3.174 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005799/5.709, allocations: 1.213 MB / 3.176 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/5.709, allocations: 4.031 kB / 3.176 GB, free: 113.1 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009347/5.71, allocations: 0.8975 MB / 3.176 GB, free: 112.1 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/5.71, allocations: 327.3 kB / 3.177 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001156/5.71, allocations: 7.984 kB / 3.177 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005626/5.711, allocations: 51.95 kB / 3.177 GB, free: 111.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/5.711, allocations: 72.62 kB / 3.177 GB, free: 111.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.208e-05/5.711, allocations: 31.98 kB / 3.177 GB, free: 111.6 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0005844/5.711, allocations: 0.6006 MB / 3.177 GB, free: 111 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.4e-07/5.711, allocations: 0 / 3.177 GB, free: 111 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001231/5.713, allocations: 0.5097 MB / 3.178 GB, free: 110.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00101/5.714, allocations: 0.5103 MB / 3.178 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001217/5.715, allocations: 0.9459 MB / 3.179 GB, free: 109.1 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.401e-06/5.715, allocations: 4 kB / 3.179 GB, free: 109.1 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004522/5.715, allocations: 444.5 kB / 3.18 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00114/5.717, allocations: 268.2 kB / 3.18 GB, free: 108.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/5.719, allocations: 1.517 MB / 3.182 GB, free: 106.9 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/5.72, allocations: 1.163 MB / 3.183 GB, free: 105.7 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001581/5.721, allocations: 0.5616 MB / 3.183 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/5.721, allocations: 83.41 kB / 3.183 GB, free: 105 MB / 0.8698 GB Notification: Performance of SimCode: time 8.81e-07/5.721, allocations: 0 / 3.183 GB, free: 105 MB / 0.8698 GB Notification: Performance of Templates: time 0.02212/5.744, allocations: 14.91 MB / 3.198 GB, free: 90.21 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches