Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) [: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.1/package.mo): time 2.346/2.346, allocations: 248.6 MB / 255.9 MB, free: 7.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001602/0.001602, allocations: 196.2 kB / 315.1 MB, free: 4.281 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.939/1.939, allocations: 205.1 MB / 0.5658 GB, free: 372 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001843/0.001843, allocations: 88.52 kB / 0.67 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4633/0.4652, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.207/0.6723, allocations: 106.3 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.646/6.318, allocations: 2.22 GB / 3.103 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/6.319, allocations: 96.94 kB / 3.103 GB, free: 148.8 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1/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.1/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: 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.2182/6.537, allocations: 52.53 MB / 3.154 GB, free: 102.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/6.537, allocations: 12 kB / 3.154 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002749/6.54, allocations: 289.9 kB / 3.155 GB, free: 102 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00269/6.543, allocations: 0.795 MB / 3.156 GB, free: 101.1 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.264e-05/6.543, allocations: 32 kB / 3.156 GB, free: 101.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003657/6.543, allocations: 60 kB / 3.156 GB, free: 101 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003447/6.546, allocations: 1.19 MB / 3.157 GB, free: 99.84 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003/6.55, allocations: 0.9782 MB / 3.158 GB, free: 98.79 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.91e-05/6.55, allocations: 3.938 kB / 3.158 GB, free: 98.79 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001735/6.55, allocations: 8 kB / 3.158 GB, free: 98.78 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-05/6.55, allocations: 45.98 kB / 3.158 GB, free: 98.73 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/6.56, allocations: 4.193 MB / 3.162 GB, free: 94.34 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001941/6.562, allocations: 0.7196 MB / 3.163 GB, free: 93.61 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008445/6.563, allocations: 294.8 kB / 3.163 GB, free: 93.32 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001208/6.563, allocations: 28.61 kB / 3.163 GB, free: 93.29 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00139/6.565, allocations: 420.5 kB / 3.163 GB, free: 92.85 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=80): time 5.37e-06/6.565, allocations: 4 kB / 3.163 GB, free: 92.85 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80): time 0.002659/6.567, allocations: 0.6518 MB / 3.164 GB, free: 92.19 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/6.568, allocations: 342.8 kB / 3.164 GB, free: 91.77 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00331/6.571, allocations: 0.7702 MB / 3.165 GB, free: 91 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003708/6.572, allocations: 29.7 kB / 3.165 GB, free: 90.96 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007414/6.572, allocations: 407.5 kB / 3.165 GB, free: 90.55 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005639/6.573, allocations: 256.1 kB / 3.166 GB, free: 90.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/6.573, allocations: 0 / 3.166 GB, free: 90.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001397/6.573, allocations: 334 kB / 3.166 GB, free: 89.97 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/6.574, allocations: 213.5 kB / 3.166 GB, free: 89.76 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/6.576, allocations: 401.5 kB / 3.167 GB, free: 89.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001321/6.577, allocations: 281.7 kB / 3.167 GB, free: 89.03 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/6.577, allocations: 4 kB / 3.167 GB, free: 89.02 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003784/6.581, allocations: 0.7131 MB / 3.168 GB, free: 88.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.00024/6.581, allocations: 0.9631 MB / 3.168 GB, free: 87.26 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/6.581, allocations: 4 kB / 3.168 GB, free: 87.26 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002666/6.582, allocations: 36.78 kB / 3.169 GB, free: 87.22 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/6.583, allocations: 163.8 kB / 3.169 GB, free: 87.06 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004781/6.584, allocations: 0.5523 MB / 3.169 GB, free: 86.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/6.585, allocations: 87.33 kB / 3.169 GB, free: 86.39 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/6.586, allocations: 27.98 kB / 3.169 GB, free: 86.37 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/6.586, allocations: 4 kB / 3.169 GB, free: 86.36 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001719/6.587, allocations: 0.575 MB / 3.17 GB, free: 85.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/6.587, allocations: 0 / 3.17 GB, free: 85.79 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/6.587, allocations: 8 kB / 3.17 GB, free: 85.78 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/6.589, allocations: 184 kB / 3.17 GB, free: 85.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/6.589, allocations: 4 kB / 3.17 GB, free: 85.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/6.59, allocations: 79.39 kB / 3.17 GB, free: 85.52 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/6.591, allocations: 31.98 kB / 3.17 GB, free: 85.49 MB / 0.8698 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.000339/6.591, allocations: 131.5 kB / 3.17 GB, free: 85.36 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003912/6.591, allocations: 98.78 kB / 3.17 GB, free: 85.26 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003311/6.595, allocations: 0.8925 MB / 3.171 GB, free: 84.35 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/6.595, allocations: 8 kB / 3.171 GB, free: 84.34 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/6.595, allocations: 0 / 3.171 GB, free: 84.34 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/6.595, allocations: 7.984 kB / 3.171 GB, free: 84.33 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00556/6.6, allocations: 2.097 MB / 3.173 GB, free: 82.16 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/6.6, allocations: 0 / 3.173 GB, free: 82.16 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001346/6.602, allocations: 163.7 kB / 3.173 GB, free: 82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/6.602, allocations: 28.97 kB / 3.174 GB, free: 81.97 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000137/6.602, allocations: 19.89 kB / 3.174 GB, free: 81.95 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/6.603, allocations: 1.228 MB / 3.175 GB, free: 80.61 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/6.603, allocations: 0 / 3.175 GB, free: 80.61 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003581/6.607, allocations: 0.8997 MB / 3.176 GB, free: 79.65 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002185/6.609, allocations: 1.302 MB / 3.177 GB, free: 78.29 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007631/6.61, allocations: 319.5 kB / 3.177 GB, free: 77.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000242/6.61, allocations: 3.906 kB / 3.177 GB, free: 77.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/6.611, allocations: 63.94 kB / 3.177 GB, free: 77.89 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001692/6.612, allocations: 52.7 kB / 3.177 GB, free: 77.84 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-05/6.612, allocations: 35.97 kB / 3.177 GB, free: 77.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001251/6.613, allocations: 0.6046 MB / 3.178 GB, free: 77.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00456/6.618, allocations: 0.537 MB / 3.178 GB, free: 76.66 MB / 0.8698 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.001936/6.62, allocations: 469.5 kB / 3.179 GB, free: 76.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002748/6.622, allocations: 0.9701 MB / 3.18 GB, free: 75.33 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/6.622, allocations: 4.438 kB / 3.18 GB, free: 75.32 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001009/6.623, allocations: 449.8 kB / 3.18 GB, free: 74.88 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002487/6.626, allocations: 266.1 kB / 3.181 GB, free: 74.62 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005506/6.631, allocations: 1.579 MB / 3.182 GB, free: 72.99 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/6.633, allocations: 1.283 MB / 3.183 GB, free: 71.68 MB / 0.8698 GB Notification: Performance of SimCode: time 2.705e-06/6.633, allocations: 0 / 3.183 GB, free: 71.68 MB / 0.8698 GB