Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine") translateModel(Buildings.Electrical.DC.Sources.Examples.WindTurbine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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 8.0.1-maint.8.0.x/package.mo): time 1.336/1.336, allocations: 285.5 MB / 292.8 MB, free: 10.45 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 181.3 kB / 361.1 MB, free: 7.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.014/1.014, allocations: 205.1 MB / 0.6195 GB, free: 10.27 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008086/0.0008087, allocations: 94.94 kB / 0.7325 GB, free: 44.2 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.741e-06, allocations: 0 / 0.8511 GB, free: 2.945 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4008, allocations: 115.3 MB / 0.9637 GB, free: 78.22 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.656/3.057, allocations: 2.101 GB / 3.064 GB, free: 45.38 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/3.057, allocations: 99.94 kB / 3.064 GB, free: 45.28 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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.3845/3.442, allocations: 51.15 MB / 3.114 GB, free: 319.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.161e-05/3.442, allocations: 31.88 kB / 3.114 GB, free: 319.3 MB / 0.948 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.001668/3.443, allocations: 1.323 MB / 3.116 GB, free: 318.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.005e-05/3.443, allocations: 14.47 kB / 3.116 GB, free: 318.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/3.445, allocations: 277.8 kB / 3.116 GB, free: 318.5 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/3.446, allocations: 0.8062 MB / 3.117 GB, free: 318.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/3.446, allocations: 39.97 kB / 3.117 GB, free: 318.2 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.038e-05/3.446, allocations: 61.34 kB / 3.117 GB, free: 318.2 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001384/3.447, allocations: 1.18 MB / 3.118 GB, free: 318.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/3.448, allocations: 0.9821 MB / 3.119 GB, free: 318 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/3.449, allocations: 7.156 kB / 3.119 GB, free: 318 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.459e-05/3.449, allocations: 0 / 3.119 GB, free: 318 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.21e-05/3.449, allocations: 48.78 kB / 3.119 GB, free: 318 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004385/3.453, allocations: 4.189 MB / 3.123 GB, free: 316.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008754/3.454, allocations: 0.7077 MB / 3.124 GB, free: 316.1 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004106/3.454, allocations: 302 kB / 3.124 GB, free: 316.1 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 6.11e-05/3.454, allocations: 33.78 kB / 3.124 GB, free: 316.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/3.455, allocations: 411.1 kB / 3.125 GB, free: 316 MB / 0.948 GB Notification: Performance of pre-optimization done (n=80): time 1.733e-06/3.455, allocations: 1.969 kB / 3.125 GB, free: 316 MB / 0.948 GB Notification: Performance of matching and sorting (n=80): time 0.0009794/3.456, allocations: 0.6511 MB / 3.125 GB, free: 315.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.974e-05/3.456, allocations: 353.9 kB / 3.126 GB, free: 315.5 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007494/3.457, allocations: 0.7701 MB / 3.126 GB, free: 315.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 4.908e-05/3.457, allocations: 25.7 kB / 3.126 GB, free: 315.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/3.457, allocations: 404.5 kB / 3.127 GB, free: 315.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/3.457, allocations: 259.1 kB / 3.127 GB, free: 314.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.977e-05/3.457, allocations: 0 / 3.127 GB, free: 314.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 4.813e-05/3.457, allocations: 332 kB / 3.127 GB, free: 314.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/3.457, allocations: 217.1 kB / 3.127 GB, free: 314.6 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004233/3.458, allocations: 390.6 kB / 3.128 GB, free: 314.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005069/3.458, allocations: 292.1 kB / 3.128 GB, free: 314.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/3.458, allocations: 1.031 kB / 3.128 GB, free: 314.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001242/3.46, allocations: 0.7173 MB / 3.129 GB, free: 314.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001378/3.46, allocations: 0.9612 MB / 3.13 GB, free: 313.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/3.46, allocations: 4.031 kB / 3.13 GB, free: 313.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/3.46, allocations: 32.36 kB / 3.13 GB, free: 313.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/3.461, allocations: 169.9 kB / 3.13 GB, free: 313.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002467/3.461, allocations: 0.548 MB / 3.13 GB, free: 312.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006146/3.461, allocations: 81.89 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/3.462, allocations: 36.73 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.199e-06/3.462, allocations: 3.406 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008042/3.462, allocations: 0.5795 MB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/3.462, allocations: 3.938 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.743e-06/3.462, allocations: 8.906 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006446/3.463, allocations: 170.2 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/3.463, allocations: 12.88 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005488/3.464, allocations: 76.53 kB / 3.131 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/3.464, allocations: 36.2 kB / 3.131 GB, free: 312.7 MB / 0.948 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.0001372/3.464, allocations: 129.2 kB / 3.132 GB, free: 312.6 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001497/3.464, allocations: 96.62 kB / 3.132 GB, free: 312.5 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/3.466, allocations: 0.8885 MB / 3.133 GB, free: 312.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/3.466, allocations: 9.188 kB / 3.133 GB, free: 312.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/3.466, allocations: 8.922 kB / 3.133 GB, free: 312.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/3.466, allocations: 4.703 kB / 3.133 GB, free: 312.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/3.468, allocations: 2.092 MB / 3.135 GB, free: 311.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/3.468, allocations: 2.75 kB / 3.135 GB, free: 311.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006258/3.469, allocations: 163.4 kB / 3.135 GB, free: 311.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001006/3.469, allocations: 33.3 kB / 3.135 GB, free: 311.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.717e-05/3.469, allocations: 14.56 kB / 3.135 GB, free: 311.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006007/3.47, allocations: 1.215 MB / 3.136 GB, free: 310.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/3.47, allocations: 6.344 kB / 3.136 GB, free: 310.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001069/3.471, allocations: 0.8996 MB / 3.137 GB, free: 310.3 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000361/3.471, allocations: 323.8 kB / 3.137 GB, free: 310.2 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/3.471, allocations: 6.781 kB / 3.137 GB, free: 310.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006304/3.472, allocations: 63.55 kB / 3.137 GB, free: 310.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/3.472, allocations: 53.09 kB / 3.137 GB, free: 310.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.772e-05/3.472, allocations: 33.94 kB / 3.137 GB, free: 310.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0006639/3.473, allocations: 0.5994 MB / 3.138 GB, free: 310.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.00128/3.474, allocations: 0.5189 MB / 3.138 GB, free: 309.9 MB / 0.948 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.0008228/3.475, allocations: 481.2 kB / 3.139 GB, free: 309.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001389/3.476, allocations: 0.971 MB / 3.14 GB, free: 309.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/3.476, allocations: 1.344 kB / 3.14 GB, free: 309.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005244/3.477, allocations: 448.9 kB / 3.14 GB, free: 309.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/3.478, allocations: 266.5 kB / 3.141 GB, free: 309.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/3.481, allocations: 1.562 MB / 3.142 GB, free: 309.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008186/3.481, allocations: 1.287 MB / 3.143 GB, free: 308.5 MB / 0.948 GB Notification: Performance of SimCode: time 5.71e-07/3.481, allocations: 0 / 3.143 GB, free: 308.5 MB / 0.948 GB Notification: Performance of Templates: time 0.02521/3.507, allocations: 19.38 MB / 3.162 GB, free: 307.2 MB / 0.948 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.makefile (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & ./Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)