Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.182/2.182, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 186.5 kB / 0.4902 GB, free: 2.297 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 223.2 MB / 0.7992 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 107.9 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 7.188 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3463, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.936/5.282, allocations: 1.761 GB / 2.991 GB, free: 225.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/5.282, allocations: 104.5 kB / 2.991 GB, free: 225.2 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28: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 10.0.0-master/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 10.0.0-master/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.1249/5.407, allocations: 56.75 MB / 3.046 GB, free: 168.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.126e-06/5.407, allocations: 3.938 kB / 3.046 GB, free: 168.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001067/5.408, allocations: 32 kB / 3.046 GB, free: 168.1 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.002818/5.41, allocations: 1.488 MB / 3.048 GB, free: 166.5 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/5.41, allocations: 12.03 kB / 3.048 GB, free: 166.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/5.412, allocations: 282.3 kB / 3.048 GB, free: 166.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/5.413, allocations: 0.7988 MB / 3.049 GB, free: 165.4 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.058e-05/5.413, allocations: 81.98 kB / 3.049 GB, free: 165.3 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/5.413, allocations: 96 kB / 3.049 GB, free: 165.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/5.415, allocations: 1.159 MB / 3.05 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.368e-05/5.415, allocations: 3.938 kB / 3.05 GB, free: 164 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.621e-05/5.415, allocations: 47.98 kB / 3.05 GB, free: 163.9 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.937e-05/5.415, allocations: 49.98 kB / 3.05 GB, free: 163.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/5.417, allocations: 1.303 MB / 3.051 GB, free: 162.6 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005465/5.422, allocations: 4.381 MB / 3.056 GB, free: 158 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/5.424, allocations: 0.8243 MB / 3.057 GB, free: 157.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.691e-05/5.424, allocations: 28.62 kB / 3.057 GB, free: 157.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006634/5.425, allocations: 469.7 kB / 3.057 GB, free: 156.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=80): time 3.787e-06/5.425, allocations: 11.94 kB / 3.057 GB, free: 156.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=80): time 0.001878/5.427, allocations: 1.085 MB / 3.058 GB, free: 155.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/5.427, allocations: 346.7 kB / 3.058 GB, free: 155.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001025/5.428, allocations: 0.8881 MB / 3.059 GB, free: 154.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.938e-05/5.428, allocations: 41.7 kB / 3.059 GB, free: 154.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003301/5.428, allocations: 0.5309 MB / 3.06 GB, free: 153.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/5.428, allocations: 260.1 kB / 3.06 GB, free: 153.3 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.402e-05/5.428, allocations: 16 kB / 3.06 GB, free: 153.3 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.266e-05/5.428, allocations: 345.9 kB / 3.06 GB, free: 153 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003933/5.429, allocations: 245.9 kB / 3.061 GB, free: 152.7 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005175/5.429, allocations: 438.5 kB / 3.061 GB, free: 152.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004764/5.43, allocations: 326.7 kB / 3.061 GB, free: 151.9 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/5.43, allocations: 0 / 3.061 GB, free: 151.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001243/5.431, allocations: 0.8251 MB / 3.062 GB, free: 151.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002616/5.431, allocations: 0.9717 MB / 3.063 GB, free: 150 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/5.431, allocations: 0 / 3.063 GB, free: 150 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/5.432, allocations: 28.84 kB / 3.063 GB, free: 150 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006681/5.432, allocations: 175.7 kB / 3.063 GB, free: 149.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002895/5.433, allocations: 0.5406 MB / 3.064 GB, free: 149.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006763/5.433, allocations: 103.3 kB / 3.064 GB, free: 149.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-05/5.433, allocations: 31.98 kB / 3.064 GB, free: 149.1 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/5.433, allocations: 9.203 kB / 3.064 GB, free: 149.1 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00103/5.434, allocations: 0.6949 MB / 3.065 GB, free: 148.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/5.434, allocations: 0 / 3.065 GB, free: 148.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-06/5.434, allocations: 8 kB / 3.065 GB, free: 148.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006195/5.435, allocations: 179.8 kB / 3.065 GB, free: 148.3 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/5.435, allocations: 7.938 kB / 3.065 GB, free: 148.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005778/5.436, allocations: 107.4 kB / 3.065 GB, free: 148.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.276e-05/5.436, allocations: 31.98 kB / 3.065 GB, free: 148.1 MB / 1.167 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.0005882/5.436, allocations: 397.5 kB / 3.065 GB, free: 147.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/5.436, allocations: 114.6 kB / 3.065 GB, free: 147.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001686/5.438, allocations: 0.9934 MB / 3.066 GB, free: 146.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.045e-05/5.438, allocations: 8 kB / 3.066 GB, free: 146.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/5.438, allocations: 3.938 kB / 3.066 GB, free: 146.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/5.438, allocations: 3.984 kB / 3.066 GB, free: 146.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/5.44, allocations: 1.359 MB / 3.068 GB, free: 145.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/5.44, allocations: 4.062 kB / 3.068 GB, free: 145.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005784/5.44, allocations: 159.8 kB / 3.068 GB, free: 145 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.822e-05/5.44, allocations: 24.84 kB / 3.068 GB, free: 145 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.854e-05/5.44, allocations: 23.98 kB / 3.068 GB, free: 144.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007133/5.441, allocations: 1.28 MB / 3.069 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/5.441, allocations: 0 / 3.069 GB, free: 143.5 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001186/5.442, allocations: 0.908 MB / 3.07 GB, free: 142.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004229/5.443, allocations: 327.3 kB / 3.07 GB, free: 142.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/5.443, allocations: 19.95 kB / 3.07 GB, free: 142.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005552/5.443, allocations: 79.94 kB / 3.071 GB, free: 142.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/5.444, allocations: 56.91 kB / 3.071 GB, free: 142.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.402e-05/5.444, allocations: 35.98 kB / 3.071 GB, free: 142.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0008157/5.444, allocations: 0.7072 MB / 3.071 GB, free: 141.3 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/5.444, allocations: 0 / 3.071 GB, free: 141.3 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001478/5.446, allocations: 0.5685 MB / 3.072 GB, free: 140.8 MB / 1.167 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.001567/5.448, allocations: 0.6761 MB / 3.073 GB, free: 140.3 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001841/5.449, allocations: 1.053 MB / 3.074 GB, free: 139.2 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/5.449, allocations: 0.875 kB / 3.074 GB, free: 139.2 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006365/5.45, allocations: 0.4885 MB / 3.074 GB, free: 138.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/5.451, allocations: 288.3 kB / 3.074 GB, free: 138.5 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/5.455, allocations: 2.524 MB / 3.077 GB, free: 135.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/5.455, allocations: 1.166 MB / 3.078 GB, free: 134.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001239/5.456, allocations: 407.7 kB / 3.078 GB, free: 134.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/5.457, allocations: 107.4 kB / 3.078 GB, free: 134.2 MB / 1.167 GB Notification: Performance of SimCode: time 1.193e-06/5.457, allocations: 0 / 3.078 GB, free: 134.2 MB / 1.167 GB Notification: Performance of Templates: time 0.02447/5.481, allocations: 14.98 MB / 3.093 GB, free: 119.4 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches