Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.169/2.169, allocations: 387.1 MB / 399.7 MB, free: 9.457 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.001052/0.001052, allocations: 172.9 kB / 492.3 MB, free: 0.6133 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.546/1.546, allocations: 221.3 MB / 0.7871 GB, free: 12.97 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.0009223/0.0009224, allocations: 95.89 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.665e-05/2.667e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.322, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.786/5.109, allocations: 1.761 GB / 2.973 GB, free: 79.54 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/5.109, allocations: 92.44 kB / 2.973 GB, free: 79.49 MB / 1.151 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.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.1217/5.231, allocations: 56.33 MB / 3.028 GB, free: 26.7 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.943e-06/5.231, allocations: 0 / 3.028 GB, free: 26.7 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001014/5.231, allocations: 35.98 kB / 3.028 GB, free: 26.66 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.002108/5.233, allocations: 1.333 MB / 3.029 GB, free: 25.27 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/5.233, allocations: 8.031 kB / 3.029 GB, free: 25.27 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/5.234, allocations: 278.6 kB / 3.03 GB, free: 24.99 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/5.236, allocations: 0.8028 MB / 3.031 GB, free: 24.14 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/5.236, allocations: 70 kB / 3.031 GB, free: 24.08 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/5.236, allocations: 107.9 kB / 3.031 GB, free: 23.97 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/5.237, allocations: 1.123 MB / 3.032 GB, free: 22.78 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.183e-05/5.237, allocations: 3.938 kB / 3.032 GB, free: 22.77 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.07e-05/5.237, allocations: 44 kB / 3.032 GB, free: 22.73 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.042e-05/5.238, allocations: 45.98 kB / 3.032 GB, free: 22.68 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00151/5.239, allocations: 1.249 MB / 3.033 GB, free: 21.44 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005203/5.244, allocations: 4.393 MB / 3.037 GB, free: 16.82 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/5.245, allocations: 0.7619 MB / 3.038 GB, free: 16.06 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004561/5.246, allocations: 323.1 kB / 3.038 GB, free: 15.74 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 7.406e-05/5.246, allocations: 24.75 kB / 3.038 GB, free: 15.71 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005723/5.247, allocations: 451.9 kB / 3.039 GB, free: 15.24 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 2.174e-06/5.247, allocations: 0 / 3.039 GB, free: 15.24 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001237/5.248, allocations: 0.7067 MB / 3.04 GB, free: 14.53 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/5.248, allocations: 358.8 kB / 3.04 GB, free: 14.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/5.249, allocations: 0.8767 MB / 3.041 GB, free: 13.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 6.198e-05/5.249, allocations: 45.69 kB / 3.041 GB, free: 13.14 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000321/5.249, allocations: 0.531 MB / 3.041 GB, free: 12.61 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/5.25, allocations: 264.1 kB / 3.042 GB, free: 12.34 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/5.25, allocations: 16 kB / 3.042 GB, free: 12.33 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.408e-05/5.25, allocations: 337.9 kB / 3.042 GB, free: 11.99 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/5.25, allocations: 225.5 kB / 3.042 GB, free: 11.77 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004263/5.25, allocations: 407.1 kB / 3.043 GB, free: 11.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/5.251, allocations: 293.9 kB / 3.043 GB, free: 11.02 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/5.251, allocations: 0 / 3.043 GB, free: 11.02 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001096/5.252, allocations: 0.773 MB / 3.044 GB, free: 10.24 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002024/5.252, allocations: 0.971 MB / 3.045 GB, free: 9.191 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.609e-06/5.252, allocations: 4 kB / 3.045 GB, free: 9.188 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/5.252, allocations: 32.84 kB / 3.045 GB, free: 9.152 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006374/5.253, allocations: 167.7 kB / 3.045 GB, free: 8.988 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003203/5.253, allocations: 0.5367 MB / 3.045 GB, free: 8.426 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006911/5.254, allocations: 111.3 kB / 3.045 GB, free: 8.316 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/5.254, allocations: 27.98 kB / 3.045 GB, free: 8.289 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/5.254, allocations: 4 kB / 3.045 GB, free: 8.285 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009156/5.255, allocations: 0.6429 MB / 3.046 GB, free: 7.641 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/5.255, allocations: 4 kB / 3.046 GB, free: 7.637 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.404e-06/5.255, allocations: 4 kB / 3.046 GB, free: 7.633 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006091/5.256, allocations: 179.7 kB / 3.046 GB, free: 7.457 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/5.256, allocations: 8 kB / 3.046 GB, free: 7.449 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005704/5.256, allocations: 103.4 kB / 3.046 GB, free: 7.348 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.599e-05/5.256, allocations: 27.98 kB / 3.046 GB, free: 7.32 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.0002032/5.257, allocations: 156.8 kB / 3.046 GB, free: 7.16 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/5.257, allocations: 106.7 kB / 3.047 GB, free: 7.055 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001683/5.258, allocations: 0.9453 MB / 3.047 GB, free: 6.094 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.485e-06/5.258, allocations: 8 kB / 3.047 GB, free: 6.086 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/5.258, allocations: 0 / 3.047 GB, free: 6.086 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/5.258, allocations: 7.984 kB / 3.048 GB, free: 6.078 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00286/5.261, allocations: 2.305 MB / 3.05 GB, free: 3.688 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/5.261, allocations: 0 / 3.05 GB, free: 3.688 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000555/5.262, allocations: 159.9 kB / 3.05 GB, free: 3.531 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001229/5.262, allocations: 36.78 kB / 3.05 GB, free: 3.492 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.931e-05/5.262, allocations: 23.98 kB / 3.05 GB, free: 3.469 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009211/5.263, allocations: 1.264 MB / 3.051 GB, free: 2.066 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/5.263, allocations: 7.891 kB / 3.051 GB, free: 2.059 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/5.264, allocations: 0.9577 MB / 3.052 GB, free: 1.047 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004049/5.265, allocations: 327.4 kB / 3.052 GB, free: 0.707 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/5.265, allocations: 19.98 kB / 3.052 GB, free: 0.6875 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000583/5.265, allocations: 71.95 kB / 3.053 GB, free: 0.6172 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/5.265, allocations: 64.64 kB / 3.053 GB, free: 0.5508 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-05/5.266, allocations: 35.98 kB / 3.053 GB, free: 0.5156 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.7938/6.059, allocations: 0.6889 MB / 3.053 GB, free: 391.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 7.12e-07/6.059, allocations: 0 / 3.053 GB, free: 391.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002793/6.062, allocations: 0.575 MB / 3.054 GB, free: 391.5 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.001785/6.064, allocations: 0.6316 MB / 3.054 GB, free: 391.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002461/6.066, allocations: 1.015 MB / 3.055 GB, free: 391.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/6.067, allocations: 1.438 kB / 3.055 GB, free: 391.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0008425/6.067, allocations: 476.3 kB / 3.056 GB, free: 391.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/6.069, allocations: 284.4 kB / 3.056 GB, free: 391.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/6.073, allocations: 1.578 MB / 3.058 GB, free: 390.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000954/6.074, allocations: 1.17 MB / 3.059 GB, free: 390.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002146/6.076, allocations: 0.5558 MB / 3.059 GB, free: 390.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002405/6.076, allocations: 84.45 kB / 3.06 GB, free: 390.1 MB / 1.151 GB Notification: Performance of SimCode: time 3.126e-06/6.076, allocations: 0.9062 kB / 3.06 GB, free: 390.1 MB / 1.151 GB Notification: Performance of Templates: time 0.04058/6.117, allocations: 16.69 MB / 3.076 GB, free: 389.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_WindTurbine.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches