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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.174/1.174, allocations: 249.4 MB / 256.7 MB, free: 0.7305 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009116/0.0009116, allocations: 172.3 kB / 316 MB, free: 8.953 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.015/1.015, allocations: 205.1 MB / 0.5667 GB, free: 13.46 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008119/0.000812, allocations: 87.56 kB / 0.671 GB, free: 51.54 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.27e-06, allocations: 0 / 0.7807 GB, free: 9.996 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3861, allocations: 106.3 MB / 0.8846 GB, free: 89.11 MB / 0.6434 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.777/3.163, allocations: 2.219 GB / 3.103 GB, free: 163.6 MB / 0.8778 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/3.163, allocations: 102.6 kB / 3.103 GB, free: 163.5 MB / 0.8778 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: time 0.1017/3.265, allocations: 51.16 MB / 3.153 GB, free: 112.6 MB / 0.8778 GB Notification: Performance of Transformations before backend: time 7.572e-05/3.265, allocations: 31.94 kB / 3.153 GB, free: 112.5 MB / 0.8778 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.001675/3.267, allocations: 1.321 MB / 3.155 GB, free: 111.2 MB / 0.8778 GB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/3.267, allocations: 8.031 kB / 3.155 GB, free: 111.2 MB / 0.8778 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/3.268, allocations: 293.9 kB / 3.155 GB, free: 110.9 MB / 0.8778 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/3.269, allocations: 0.795 MB / 3.156 GB, free: 110 MB / 0.8778 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/3.269, allocations: 32 kB / 3.156 GB, free: 110 MB / 0.8778 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.235e-05/3.269, allocations: 56 kB / 3.156 GB, free: 109.9 MB / 0.8778 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001368/3.271, allocations: 1.179 MB / 3.157 GB, free: 108.8 MB / 0.8778 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/3.272, allocations: 0.9899 MB / 3.158 GB, free: 107.7 MB / 0.8778 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/3.272, allocations: 2.812 kB / 3.158 GB, free: 107.7 MB / 0.8778 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-05/3.272, allocations: 4 kB / 3.158 GB, free: 107.7 MB / 0.8778 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.961e-05/3.272, allocations: 53.98 kB / 3.158 GB, free: 107.6 MB / 0.8778 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004186/3.276, allocations: 4.19 MB / 3.162 GB, free: 103.3 MB / 0.8778 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008586/3.277, allocations: 0.7236 MB / 3.163 GB, free: 102.5 MB / 0.8778 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003921/3.277, allocations: 295.5 kB / 3.163 GB, free: 102.2 MB / 0.8778 GB Notification: Performance of preOpt evalFunc (simulation): time 5.902e-05/3.278, allocations: 36.52 kB / 3.163 GB, free: 102.2 MB / 0.8778 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004251/3.278, allocations: 408.6 kB / 3.163 GB, free: 101.8 MB / 0.8778 GB Notification: Performance of pre-optimization done (n=80): time 1.933e-06/3.278, allocations: 0 / 3.163 GB, free: 101.8 MB / 0.8778 GB Notification: Performance of matching and sorting (n=80): time 0.0009409/3.279, allocations: 0.6519 MB / 3.164 GB, free: 101.1 MB / 0.8778 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/3.279, allocations: 350.8 kB / 3.164 GB, free: 100.7 MB / 0.8778 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007236/3.28, allocations: 0.7663 MB / 3.165 GB, free: 99.91 MB / 0.8778 GB Notification: Performance of collectPreVariables (initialization): time 4.72e-05/3.28, allocations: 29.7 kB / 3.165 GB, free: 99.88 MB / 0.8778 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/3.28, allocations: 403.5 kB / 3.166 GB, free: 99.48 MB / 0.8778 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/3.28, allocations: 256.1 kB / 3.166 GB, free: 99.22 MB / 0.8778 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3e-05/3.28, allocations: 0 / 3.166 GB, free: 99.22 MB / 0.8778 GB Notification: Performance of setup shared object (initialization): time 4.636e-05/3.28, allocations: 337.9 kB / 3.166 GB, free: 98.89 MB / 0.8778 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002773/3.28, allocations: 213.5 kB / 3.166 GB, free: 98.68 MB / 0.8778 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003573/3.281, allocations: 393.5 kB / 3.167 GB, free: 98.23 MB / 0.8778 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/3.281, allocations: 289.7 kB / 3.167 GB, free: 97.95 MB / 0.8778 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/3.281, allocations: 0 / 3.167 GB, free: 97.95 MB / 0.8778 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0009304/3.282, allocations: 0.7092 MB / 3.168 GB, free: 97.23 MB / 0.8778 GB Notification: Performance of prepare postOptimizeDAE: time 0.000126/3.282, allocations: 0.967 MB / 3.169 GB, free: 96.18 MB / 0.8778 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/3.282, allocations: 4 kB / 3.169 GB, free: 96.18 MB / 0.8778 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/3.282, allocations: 28.84 kB / 3.169 GB, free: 96.14 MB / 0.8778 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006201/3.283, allocations: 171.7 kB / 3.169 GB, free: 95.98 MB / 0.8778 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002229/3.283, allocations: 0.5445 MB / 3.169 GB, free: 95.41 MB / 0.8778 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/3.284, allocations: 83.34 kB / 3.169 GB, free: 95.32 MB / 0.8778 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/3.284, allocations: 37.11 kB / 3.17 GB, free: 95.29 MB / 0.8778 GB Notification: Performance of prepare postOptimizeDAE: time 5.651e-06/3.284, allocations: 5.25 kB / 3.17 GB, free: 95.29 MB / 0.8778 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007724/3.285, allocations: 0.5829 MB / 3.17 GB, free: 94.7 MB / 0.8778 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/3.285, allocations: 0 / 3.17 GB, free: 94.7 MB / 0.8778 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.032e-06/3.285, allocations: 11.98 kB / 3.17 GB, free: 94.69 MB / 0.8778 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006193/3.285, allocations: 167.8 kB / 3.17 GB, free: 94.53 MB / 0.8778 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/3.285, allocations: 11.98 kB / 3.17 GB, free: 94.52 MB / 0.8778 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005181/3.286, allocations: 71.47 kB / 3.17 GB, free: 94.45 MB / 0.8778 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/3.286, allocations: 39.92 kB / 3.17 GB, free: 94.41 MB / 0.8778 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.0001246/3.286, allocations: 124.7 kB / 3.171 GB, free: 94.28 MB / 0.8778 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/3.286, allocations: 108.3 kB / 3.171 GB, free: 94.17 MB / 0.8778 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001383/3.288, allocations: 0.8902 MB / 3.171 GB, free: 93.29 MB / 0.8778 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/3.288, allocations: 9.406 kB / 3.171 GB, free: 93.28 MB / 0.8778 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/3.288, allocations: 7.938 kB / 3.172 GB, free: 93.27 MB / 0.8778 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/3.288, allocations: 3.984 kB / 3.172 GB, free: 93.27 MB / 0.8778 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002093/3.29, allocations: 2.093 MB / 3.174 GB, free: 91.1 MB / 0.8778 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/3.29, allocations: 0 / 3.174 GB, free: 91.1 MB / 0.8778 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005565/3.29, allocations: 167.8 kB / 3.174 GB, free: 90.94 MB / 0.8778 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.937e-05/3.29, allocations: 28.75 kB / 3.174 GB, free: 90.91 MB / 0.8778 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.196e-05/3.29, allocations: 15.98 kB / 3.174 GB, free: 90.89 MB / 0.8778 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005292/3.291, allocations: 1.22 MB / 3.175 GB, free: 89.56 MB / 0.8778 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/3.291, allocations: 0 / 3.175 GB, free: 89.56 MB / 0.8778 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008947/3.292, allocations: 0.8998 MB / 3.176 GB, free: 88.61 MB / 0.8778 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003196/3.292, allocations: 319.4 kB / 3.176 GB, free: 88.27 MB / 0.8778 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001338/3.292, allocations: 5.688 kB / 3.176 GB, free: 88.27 MB / 0.8778 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005943/3.293, allocations: 67.94 kB / 3.176 GB, free: 88.2 MB / 0.8778 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.948e-05/3.293, allocations: 52.64 kB / 3.176 GB, free: 88.15 MB / 0.8778 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-05/3.293, allocations: 33.95 kB / 3.176 GB, free: 88.12 MB / 0.8778 GB Notification: Performance of sort global known variables: time 0.0005224/3.294, allocations: 0.6085 MB / 3.177 GB, free: 87.52 MB / 0.8778 GB Notification: Performance of remove unused functions: time 0.0009807/3.295, allocations: 0.5097 MB / 3.177 GB, free: 87.01 MB / 0.8778 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.0007591/3.295, allocations: 483.8 kB / 3.178 GB, free: 86.67 MB / 0.8778 GB Notification: Performance of simCode: created initialization part: time 0.001111/3.296, allocations: 0.9623 MB / 3.179 GB, free: 85.71 MB / 0.8778 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/3.296, allocations: 448 / 3.179 GB, free: 85.71 MB / 0.8778 GB Notification: Performance of simCode: created simulation system equations: time 0.0004348/3.297, allocations: 449.9 kB / 3.179 GB, free: 85.26 MB / 0.8778 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009616/3.298, allocations: 267.1 kB / 3.179 GB, free: 85.01 MB / 0.8778 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/3.3, allocations: 1.575 MB / 3.181 GB, free: 83.39 MB / 0.8778 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006885/3.301, allocations: 1.285 MB / 3.182 GB, free: 82.07 MB / 0.8778 GB Notification: Performance of SimCode: time 2.4e-07/3.301, allocations: 0 / 3.182 GB, free: 82.07 MB / 0.8778 GB Notification: Performance of Templates: time 0.0228/3.324, allocations: 19.38 MB / 3.201 GB, free: 62.86 MB / 0.8778 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