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.471/1.471, allocations: 249.3 MB / 261.8 MB, free: 5.93 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.0009884/0.0009886, allocations: 184.8 kB / 321.3 MB, free: 14.66 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.568/1.568, allocations: 205.2 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.0008134/0.0008135, allocations: 100.5 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.062e-05/3.065e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2103, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.191/5.401, allocations: 2.219 GB / 3.111 GB, free: 148.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/5.402, allocations: 96.66 kB / 3.111 GB, free: 148.4 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.1141/5.516, allocations: 51.4 MB / 3.161 GB, free: 96.72 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.114e-06/5.516, allocations: 0 / 3.161 GB, free: 96.72 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001451/5.516, allocations: 28 kB / 3.162 GB, free: 96.7 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.002937/5.519, allocations: 1.286 MB / 3.163 GB, free: 95.36 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/5.519, allocations: 12.03 kB / 3.163 GB, free: 95.34 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/5.521, allocations: 278.5 kB / 3.163 GB, free: 95.07 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/5.522, allocations: 0.7989 MB / 3.164 GB, free: 94.23 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.479e-05/5.522, allocations: 77.98 kB / 3.164 GB, free: 94.15 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/5.523, allocations: 99.98 kB / 3.164 GB, free: 94.05 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/5.525, allocations: 1.107 MB / 3.165 GB, free: 92.88 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/5.525, allocations: 0 / 3.165 GB, free: 92.88 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/5.525, allocations: 47.98 kB / 3.165 GB, free: 92.83 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.043e-05/5.525, allocations: 53.98 kB / 3.165 GB, free: 92.77 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001717/5.526, allocations: 1.241 MB / 3.166 GB, free: 91.54 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005663/5.532, allocations: 4.355 MB / 3.171 GB, free: 86.96 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/5.533, allocations: 0.7689 MB / 3.171 GB, free: 86.18 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/5.534, allocations: 319.1 kB / 3.172 GB, free: 85.87 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.846e-05/5.534, allocations: 36.8 kB / 3.172 GB, free: 85.84 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006/5.535, allocations: 451.9 kB / 3.172 GB, free: 85.36 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=80): time 2.635e-06/5.535, allocations: 0 / 3.172 GB, free: 85.36 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80): time 0.001268/5.536, allocations: 0.7029 MB / 3.173 GB, free: 84.65 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.86e-05/5.536, allocations: 354.9 kB / 3.173 GB, free: 84.22 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/5.537, allocations: 0.8707 MB / 3.174 GB, free: 83.32 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.305e-05/5.537, allocations: 41.7 kB / 3.174 GB, free: 83.28 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/5.538, allocations: 0.5231 MB / 3.175 GB, free: 82.75 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/5.538, allocations: 260.2 kB / 3.175 GB, free: 82.49 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/5.538, allocations: 16 kB / 3.175 GB, free: 82.47 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.816e-05/5.538, allocations: 337.9 kB / 3.175 GB, free: 82.14 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003415/5.538, allocations: 229.5 kB / 3.175 GB, free: 81.91 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004457/5.539, allocations: 407.1 kB / 3.176 GB, free: 81.45 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/5.539, allocations: 301.9 kB / 3.176 GB, free: 81.16 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/5.539, allocations: 0 / 3.176 GB, free: 81.16 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001153/5.54, allocations: 0.7614 MB / 3.177 GB, free: 80.38 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002087/5.54, allocations: 0.9787 MB / 3.178 GB, free: 79.33 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/5.54, allocations: 0 / 3.178 GB, free: 79.33 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/5.541, allocations: 28.84 kB / 3.178 GB, free: 79.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006115/5.541, allocations: 171.7 kB / 3.178 GB, free: 79.13 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002671/5.542, allocations: 0.5444 MB / 3.178 GB, free: 78.56 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007245/5.542, allocations: 107.2 kB / 3.179 GB, free: 78.46 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7e-05/5.542, allocations: 31.98 kB / 3.179 GB, free: 78.43 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/5.542, allocations: 4 kB / 3.179 GB, free: 78.42 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009332/5.543, allocations: 0.639 MB / 3.179 GB, free: 77.78 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/5.543, allocations: 4 kB / 3.179 GB, free: 77.77 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.075e-06/5.543, allocations: 4 kB / 3.179 GB, free: 77.77 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006411/5.544, allocations: 179.7 kB / 3.179 GB, free: 77.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/5.544, allocations: 8.25 kB / 3.179 GB, free: 77.59 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006658/5.545, allocations: 99.33 kB / 3.18 GB, free: 77.49 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.009e-05/5.545, allocations: 35.92 kB / 3.18 GB, free: 77.45 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.0002068/5.545, allocations: 156.8 kB / 3.18 GB, free: 77.29 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/5.545, allocations: 110.7 kB / 3.18 GB, free: 77.18 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001614/5.547, allocations: 0.9372 MB / 3.181 GB, free: 76.23 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.288e-06/5.547, allocations: 8 kB / 3.181 GB, free: 76.23 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/5.547, allocations: 8 kB / 3.181 GB, free: 76.22 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/5.547, allocations: 3.984 kB / 3.181 GB, free: 76.21 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002976/5.55, allocations: 2.278 MB / 3.183 GB, free: 73.85 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/5.55, allocations: 8.031 kB / 3.183 GB, free: 73.84 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005426/5.55, allocations: 163.7 kB / 3.183 GB, free: 73.68 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001005/5.551, allocations: 20.86 kB / 3.183 GB, free: 73.66 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.303e-05/5.551, allocations: 27.98 kB / 3.183 GB, free: 73.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006648/5.551, allocations: 1.28 MB / 3.184 GB, free: 72.21 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/5.551, allocations: 0 / 3.184 GB, free: 72.21 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00117/5.552, allocations: 0.9534 MB / 3.185 GB, free: 71.21 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004622/5.553, allocations: 331.4 kB / 3.186 GB, free: 70.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/5.553, allocations: 23.98 kB / 3.186 GB, free: 70.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006174/5.554, allocations: 67.95 kB / 3.186 GB, free: 70.77 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/5.554, allocations: 64.69 kB / 3.186 GB, free: 70.71 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.524e-05/5.554, allocations: 31.98 kB / 3.186 GB, free: 70.68 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0008207/5.555, allocations: 0.6835 MB / 3.187 GB, free: 69.98 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.7e-07/5.555, allocations: 0 / 3.187 GB, free: 69.98 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001448/5.556, allocations: 0.545 MB / 3.187 GB, free: 69.43 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.001277/5.557, allocations: 0.5558 MB / 3.188 GB, free: 68.97 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.00163/5.559, allocations: 1.01 MB / 3.189 GB, free: 67.96 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/5.559, allocations: 0 / 3.189 GB, free: 67.96 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006242/5.56, allocations: 474.9 kB / 3.189 GB, free: 67.48 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/5.561, allocations: 293.8 kB / 3.189 GB, free: 67.2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/5.564, allocations: 1.57 MB / 3.191 GB, free: 65.59 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006168/5.564, allocations: 1.163 MB / 3.192 GB, free: 64.39 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001563/5.566, allocations: 0.5463 MB / 3.193 GB, free: 63.84 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001922/5.566, allocations: 83.41 kB / 3.193 GB, free: 63.76 MB / 0.8698 GB Notification: Performance of SimCode: time 1.192e-06/5.566, allocations: 0 / 3.193 GB, free: 63.76 MB / 0.8698 GB Notification: Performance of Templates: time 0.02972/5.596, allocations: 16.22 MB / 3.208 GB, free: 47.62 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