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.318/1.318, allocations: 251.9 MB / 266.9 MB, free: 10.98 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 177.4 kB / 326.5 MB, free: 2.234 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.736/1.736, allocations: 205.4 MB / 0.5775 GB, free: 20.51 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.0009927/0.0009925, allocations: 88.05 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000437/0.000437, allocations: 7.25 kB / 0.7962 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2166, allocations: 106.3 MB / 0.9001 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.531/5.748, allocations: 2.219 GB / 3.12 GB, free: 237.6 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003752/5.748, allocations: 98.56 kB / 3.12 GB, free: 237.6 MB / 0.8855 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.1205/5.869, allocations: 51.79 MB / 3.17 GB, free: 229 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.703e-06/5.869, allocations: 0 / 3.17 GB, free: 229 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001713/5.869, allocations: 35.31 kB / 3.17 GB, free: 229 MB / 0.8855 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.004086/5.873, allocations: 1.453 MB / 3.172 GB, free: 227.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/5.873, allocations: 7.812 kB / 3.172 GB, free: 227.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00178/5.875, allocations: 279.1 kB / 3.172 GB, free: 227.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/5.877, allocations: 0.7993 MB / 3.173 GB, free: 227.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/5.877, allocations: 77.09 kB / 3.173 GB, free: 227.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002601/5.877, allocations: 90.47 kB / 3.173 GB, free: 227.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002364/5.88, allocations: 1.149 MB / 3.174 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.918e-05/5.88, allocations: 0 / 3.174 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001414/5.88, allocations: 43.34 kB / 3.174 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.739e-05/5.88, allocations: 52.36 kB / 3.174 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002037/5.882, allocations: 1.297 MB / 3.175 GB, free: 226.5 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006757/5.889, allocations: 4.362 MB / 3.18 GB, free: 223.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001469/5.89, allocations: 0.8115 MB / 3.18 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 7.982e-05/5.89, allocations: 32.3 kB / 3.18 GB, free: 223.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00074/5.891, allocations: 472.8 kB / 3.181 GB, free: 223.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=80): time 4.458e-06/5.891, allocations: 7.938 kB / 3.181 GB, free: 223.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80): time 0.00219/5.893, allocations: 1.094 MB / 3.182 GB, free: 223.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/5.893, allocations: 353.1 kB / 3.182 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001447/5.895, allocations: 0.8819 MB / 3.183 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001009/5.895, allocations: 40.73 kB / 3.183 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000433/5.895, allocations: 0.5192 MB / 3.184 GB, free: 222.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/5.896, allocations: 259.3 kB / 3.184 GB, free: 221.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/5.896, allocations: 22.06 kB / 3.184 GB, free: 221.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.868e-05/5.896, allocations: 336.1 kB / 3.184 GB, free: 221.6 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/5.896, allocations: 251.7 kB / 3.185 GB, free: 221.6 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005642/5.897, allocations: 441.1 kB / 3.185 GB, free: 221.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/5.897, allocations: 321.4 kB / 3.185 GB, free: 221.3 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/5.897, allocations: 0 / 3.185 GB, free: 221.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001491/5.899, allocations: 0.823 MB / 3.186 GB, free: 221.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002645/5.899, allocations: 0.961 MB / 3.187 GB, free: 220.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/5.899, allocations: 7.703 kB / 3.187 GB, free: 220.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002165/5.899, allocations: 35.78 kB / 3.187 GB, free: 220.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006867/5.9, allocations: 169 kB / 3.187 GB, free: 220 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003121/5.9, allocations: 0.5384 MB / 3.188 GB, free: 219.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/5.901, allocations: 112.1 kB / 3.188 GB, free: 219.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.708e-05/5.901, allocations: 33.48 kB / 3.188 GB, free: 219.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/5.901, allocations: 3.812 kB / 3.188 GB, free: 219.4 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001164/5.903, allocations: 0.6896 MB / 3.189 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/5.903, allocations: 3.219 kB / 3.189 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/5.903, allocations: 6.344 kB / 3.189 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006494/5.903, allocations: 172.7 kB / 3.189 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/5.903, allocations: 15.95 kB / 3.189 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007724/5.904, allocations: 99.48 kB / 3.189 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.742e-05/5.904, allocations: 29.86 kB / 3.189 GB, free: 219.2 MB / 0.8855 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 () * Number of clocked 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.0007534/5.905, allocations: 406.1 kB / 3.189 GB, free: 219 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/5.905, allocations: 108.6 kB / 3.189 GB, free: 218.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001935/5.907, allocations: 0.9928 MB / 3.19 GB, free: 218.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/5.907, allocations: 10.03 kB / 3.19 GB, free: 218.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/5.907, allocations: 0 / 3.19 GB, free: 218.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/5.907, allocations: 3.984 kB / 3.19 GB, free: 218.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/5.909, allocations: 1.353 MB / 3.192 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/5.909, allocations: 0 / 3.192 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006136/5.91, allocations: 158.9 kB / 3.192 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001254/5.91, allocations: 24.03 kB / 3.192 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.44e-05/5.91, allocations: 22.8 kB / 3.192 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007771/5.911, allocations: 1.285 MB / 3.193 GB, free: 216.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/5.911, allocations: 0 / 3.193 GB, free: 216.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/5.912, allocations: 0.9051 MB / 3.194 GB, free: 216.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005898/5.913, allocations: 326.3 kB / 3.194 GB, free: 216.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/5.913, allocations: 20.41 kB / 3.194 GB, free: 216.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006786/5.914, allocations: 72.66 kB / 3.194 GB, free: 216.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/5.914, allocations: 72.17 kB / 3.195 GB, free: 216 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.435e-05/5.914, allocations: 30.33 kB / 3.195 GB, free: 216 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001028/5.915, allocations: 0.6927 MB / 3.195 GB, free: 215.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.41e-07/5.915, allocations: 0 / 3.195 GB, free: 215.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001752/5.917, allocations: 0.5447 MB / 3.196 GB, free: 215.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 88 * 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.001586/5.919, allocations: 0.5774 MB / 3.196 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002083/5.921, allocations: 1.054 MB / 3.197 GB, free: 215.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/5.921, allocations: 8 kB / 3.197 GB, free: 215.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007407/5.921, allocations: 491 kB / 3.198 GB, free: 215 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/5.923, allocations: 291 kB / 3.198 GB, free: 215 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005007/5.928, allocations: 2.51 MB / 3.201 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008616/5.929, allocations: 1.168 MB / 3.202 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00151/5.93, allocations: 398 kB / 3.202 GB, free: 212.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003426/5.931, allocations: 118.8 kB / 3.202 GB, free: 212.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.713e-06/5.931, allocations: 0 / 3.202 GB, free: 212.4 MB / 0.8855 GB Notification: Performance of Templates: time 0.02739/5.958, allocations: 14.53 MB / 3.216 GB, free: 203.4 MB / 0.8855 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