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.341/2.341, allocations: 390.5 MB / 398 MB, free: 10.98 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.001148/0.001148, allocations: 180.9 kB / 491.2 MB, free: 1.594 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.659/1.659, allocations: 221.5 MB / 0.7868 GB, free: 13.31 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.001017/0.001017, allocations: 95.95 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.06e-05, allocations: 2.938 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3198, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.948/5.268, allocations: 1.761 GB / 2.973 GB, free: 78.78 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/5.268, allocations: 97.2 kB / 2.973 GB, free: 78.73 MB / 1.151 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.1254/5.394, allocations: 55.91 MB / 3.028 GB, free: 26.36 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.404e-06/5.394, allocations: 0 / 3.028 GB, free: 26.36 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001671/5.394, allocations: 39.92 kB / 3.028 GB, free: 26.32 MB / 1.151 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.003192/5.397, allocations: 1.329 MB / 3.029 GB, free: 24.93 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/5.397, allocations: 8.031 kB / 3.029 GB, free: 24.92 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001694/5.399, allocations: 274.4 kB / 3.029 GB, free: 24.65 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/5.4, allocations: 0.7989 MB / 3.03 GB, free: 23.81 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.491e-05/5.4, allocations: 32 kB / 3.03 GB, free: 23.78 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001623/5.401, allocations: 56 kB / 3.03 GB, free: 23.73 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001774/5.402, allocations: 1.171 MB / 3.031 GB, free: 22.55 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/5.404, allocations: 0.994 MB / 3.032 GB, free: 21.49 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/5.404, allocations: 0 / 3.032 GB, free: 21.49 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.833e-05/5.404, allocations: 7.984 kB / 3.032 GB, free: 21.48 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.744e-05/5.404, allocations: 49.94 kB / 3.032 GB, free: 21.43 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005531/5.41, allocations: 4.19 MB / 3.036 GB, free: 17.04 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001147/5.411, allocations: 0.7233 MB / 3.037 GB, free: 16.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004512/5.411, allocations: 297.9 kB / 3.037 GB, free: 16.01 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 8.022e-05/5.411, allocations: 32.81 kB / 3.038 GB, free: 15.98 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005396/5.412, allocations: 422.3 kB / 3.038 GB, free: 15.54 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 3.246e-06/5.412, allocations: 4 kB / 3.038 GB, free: 15.53 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001245/5.413, allocations: 0.66 MB / 3.039 GB, free: 14.86 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/5.413, allocations: 350.9 kB / 3.039 GB, free: 14.44 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/5.415, allocations: 0.7663 MB / 3.04 GB, free: 13.67 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.247e-05/5.415, allocations: 29.7 kB / 3.04 GB, free: 13.63 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003246/5.415, allocations: 0.5269 MB / 3.04 GB, free: 13.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/5.415, allocations: 256.2 kB / 3.04 GB, free: 12.84 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/5.415, allocations: 0 / 3.04 GB, free: 12.84 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.84e-05/5.415, allocations: 334 kB / 3.041 GB, free: 12.51 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/5.416, allocations: 213.5 kB / 3.041 GB, free: 12.3 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000368/5.416, allocations: 401.5 kB / 3.041 GB, free: 11.84 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003721/5.416, allocations: 272.4 kB / 3.042 GB, free: 11.57 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/5.416, allocations: 0 / 3.042 GB, free: 11.57 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001053/5.417, allocations: 0.7106 MB / 3.042 GB, free: 10.86 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001975/5.418, allocations: 0.971 MB / 3.043 GB, free: 9.809 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/5.418, allocations: 8 kB / 3.043 GB, free: 9.801 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001698/5.418, allocations: 24.84 kB / 3.043 GB, free: 9.773 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006318/5.418, allocations: 163.8 kB / 3.043 GB, free: 9.613 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002679/5.419, allocations: 0.5484 MB / 3.044 GB, free: 9.039 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006391/5.419, allocations: 83.27 kB / 3.044 GB, free: 8.957 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/5.419, allocations: 31.98 kB / 3.044 GB, free: 8.926 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/5.419, allocations: 5.406 kB / 3.044 GB, free: 8.922 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007987/5.42, allocations: 0.5766 MB / 3.045 GB, free: 8.348 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/5.42, allocations: 3.953 kB / 3.045 GB, free: 8.344 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.226e-06/5.42, allocations: 8 kB / 3.045 GB, free: 8.336 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/5.421, allocations: 175.7 kB / 3.045 GB, free: 8.164 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/5.421, allocations: 4.312 kB / 3.045 GB, free: 8.16 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005393/5.421, allocations: 71.41 kB / 3.045 GB, free: 8.09 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/5.421, allocations: 39.92 kB / 3.045 GB, free: 8.051 MB / 1.151 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.0001785/5.422, allocations: 128.7 kB / 3.045 GB, free: 7.918 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/5.422, allocations: 102.8 kB / 3.045 GB, free: 7.816 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001504/5.423, allocations: 0.8707 MB / 3.046 GB, free: 6.93 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/5.423, allocations: 8 kB / 3.046 GB, free: 6.922 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/5.423, allocations: 11.98 kB / 3.046 GB, free: 6.91 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/5.423, allocations: 3.984 kB / 3.046 GB, free: 6.906 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002584/5.426, allocations: 2.087 MB / 3.048 GB, free: 4.746 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/5.426, allocations: 4.031 kB / 3.048 GB, free: 4.742 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005483/5.427, allocations: 163.7 kB / 3.048 GB, free: 4.582 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/5.427, allocations: 24.84 kB / 3.048 GB, free: 4.555 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.189e-05/5.427, allocations: 15.98 kB / 3.048 GB, free: 4.539 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006548/5.427, allocations: 1.221 MB / 3.049 GB, free: 3.203 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/5.427, allocations: 3.938 kB / 3.049 GB, free: 3.199 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/5.428, allocations: 0.9053 MB / 3.05 GB, free: 2.234 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003774/5.429, allocations: 327.4 kB / 3.051 GB, free: 1.895 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/5.429, allocations: 4 kB / 3.051 GB, free: 1.891 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005818/5.43, allocations: 55.95 kB / 3.051 GB, free: 1.836 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/5.43, allocations: 68.67 kB / 3.051 GB, free: 1.766 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.192e-05/5.43, allocations: 27.98 kB / 3.051 GB, free: 1.738 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006764/5.43, allocations: 0.6006 MB / 3.051 GB, free: 1.145 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.31e-07/5.43, allocations: 4 kB / 3.051 GB, free: 1.141 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001796/5.432, allocations: 0.5331 MB / 3.052 GB, free: 0.6055 MB / 1.151 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.001607/5.434, allocations: 0.6014 MB / 3.053 GB, free: 124 kB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.668/6.102, allocations: 0.9322 MB / 3.053 GB, free: 391.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/6.102, allocations: 2.156 kB / 3.053 GB, free: 391.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001159/6.103, allocations: 445.7 kB / 3.054 GB, free: 391.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/6.106, allocations: 271.7 kB / 3.054 GB, free: 391.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/6.111, allocations: 1.538 MB / 3.056 GB, free: 390.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001318/6.112, allocations: 1.164 MB / 3.057 GB, free: 390.1 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.003452/6.115, allocations: 0.5656 MB / 3.057 GB, free: 390.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003433/6.116, allocations: 83.59 kB / 3.057 GB, free: 390.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.753e-06/6.116, allocations: 1.062 kB / 3.057 GB, free: 390.1 MB / 1.151 GB Notification: Performance of Templates: time 0.05744/6.173, allocations: 15.28 MB / 3.072 GB, free: 389.3 MB / 1.151 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