Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.089/2.089, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001592/0.001592, allocations: 185.2 kB / 360.3 MB, free: 7.504 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.625/1.625, allocations: 205.1 MB / 0.6187 GB, free: 13.19 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.001173/0.001173, allocations: 89.5 kB / 0.7317 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2436/0.2449, allocations: 121.4 MB / 0.8502 GB, free: 3.887 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5522/0.797, allocations: 115.2 MB / 0.9627 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.17/4.967, allocations: 2.101 GB / 3.063 GB, free: 18.42 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/4.968, allocations: 95.28 kB / 3.063 GB, free: 18.37 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0/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.0/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.5577/5.526, allocations: 52.52 MB / 3.115 GB, free: 329.8 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/5.526, allocations: 9 kB / 3.115 GB, free: 329.8 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002518/5.528, allocations: 288 kB / 3.115 GB, free: 329.7 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/5.53, allocations: 0.798 MB / 3.116 GB, free: 329.3 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.482e-05/5.531, allocations: 36 kB / 3.116 GB, free: 329.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001894/5.531, allocations: 59.31 kB / 3.116 GB, free: 329.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003011/5.534, allocations: 1.182 MB / 3.117 GB, free: 329 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/5.536, allocations: 0.9839 MB / 3.118 GB, free: 328.5 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.278e-05/5.536, allocations: 5.625 kB / 3.118 GB, free: 328.5 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/5.537, allocations: 5.547 kB / 3.118 GB, free: 328.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.882e-05/5.537, allocations: 49.69 kB / 3.118 GB, free: 328.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008935/5.546, allocations: 4.177 MB / 3.122 GB, free: 325.9 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/5.547, allocations: 0.7118 MB / 3.123 GB, free: 325.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007677/5.548, allocations: 299.8 kB / 3.123 GB, free: 325.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 9.938e-05/5.548, allocations: 34.73 kB / 3.123 GB, free: 325.5 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000812/5.549, allocations: 407.1 kB / 3.123 GB, free: 325.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=80): time 3.317e-06/5.549, allocations: 4 kB / 3.123 GB, free: 325.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=80): time 0.001871/5.551, allocations: 0.6523 MB / 3.124 GB, free: 325 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.445e-05/5.551, allocations: 346.5 kB / 3.124 GB, free: 324.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/5.553, allocations: 0.7782 MB / 3.125 GB, free: 324.3 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 9.197e-05/5.553, allocations: 32.94 kB / 3.125 GB, free: 324.2 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000337/5.553, allocations: 401.6 kB / 3.126 GB, free: 323.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/5.553, allocations: 249.6 kB / 3.126 GB, free: 323.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.447e-05/5.553, allocations: 5.281 kB / 3.126 GB, free: 323.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.351e-05/5.553, allocations: 335.5 kB / 3.126 GB, free: 323.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005576/5.554, allocations: 214.9 kB / 3.126 GB, free: 323.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007356/5.555, allocations: 396.8 kB / 3.127 GB, free: 323.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00075/5.555, allocations: 286.4 kB / 3.127 GB, free: 323 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/5.556, allocations: 0 / 3.127 GB, free: 323 MB / 0.948 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002001/5.558, allocations: 0.7206 MB / 3.128 GB, free: 322.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001909/5.558, allocations: 0.9633 MB / 3.129 GB, free: 321.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/5.558, allocations: 3.406 kB / 3.129 GB, free: 321.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002233/5.558, allocations: 26.38 kB / 3.129 GB, free: 321.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/5.559, allocations: 174.4 kB / 3.129 GB, free: 321.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003781/5.56, allocations: 0.5416 MB / 3.129 GB, free: 321.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/5.561, allocations: 90.91 kB / 3.13 GB, free: 321.1 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.484e-05/5.561, allocations: 29.09 kB / 3.13 GB, free: 321.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/5.561, allocations: 5.656 kB / 3.13 GB, free: 321.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001625/5.563, allocations: 0.5806 MB / 3.13 GB, free: 320.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/5.563, allocations: 2.344 kB / 3.13 GB, free: 320.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/5.563, allocations: 6.469 kB / 3.13 GB, free: 320.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/5.564, allocations: 174.2 kB / 3.13 GB, free: 320.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/5.564, allocations: 6.953 kB / 3.13 GB, free: 320.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/5.565, allocations: 81.09 kB / 3.13 GB, free: 320.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.711e-05/5.565, allocations: 38.17 kB / 3.13 GB, free: 320.8 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.0002339/5.566, allocations: 126.1 kB / 3.131 GB, free: 320.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002251/5.566, allocations: 99.75 kB / 3.131 GB, free: 320.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002839/5.569, allocations: 0.8887 MB / 3.131 GB, free: 320.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/5.569, allocations: 9.531 kB / 3.131 GB, free: 320.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/5.569, allocations: 0 / 3.131 GB, free: 320.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/5.569, allocations: 11.25 kB / 3.131 GB, free: 320.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00429/5.573, allocations: 2.102 MB / 3.134 GB, free: 319.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/5.573, allocations: 5.281 kB / 3.134 GB, free: 319.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/5.574, allocations: 166.4 kB / 3.134 GB, free: 319.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001674/5.575, allocations: 26.23 kB / 3.134 GB, free: 319.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-05/5.575, allocations: 16.42 kB / 3.134 GB, free: 319.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009337/5.576, allocations: 1.217 MB / 3.135 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/5.576, allocations: 1.469 kB / 3.135 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001926/5.577, allocations: 0.8982 MB / 3.136 GB, free: 317.5 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00198/5.579, allocations: 1.303 MB / 3.137 GB, free: 316.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006582/5.58, allocations: 321.1 kB / 3.137 GB, free: 316.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000234/5.58, allocations: 5.875 kB / 3.137 GB, free: 316.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/5.582, allocations: 69.09 kB / 3.137 GB, free: 316.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/5.582, allocations: 48.02 kB / 3.138 GB, free: 316.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.811e-05/5.582, allocations: 38.09 kB / 3.138 GB, free: 316.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.001192/5.583, allocations: 0.5997 MB / 3.138 GB, free: 316.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003711/5.587, allocations: 0.5463 MB / 3.139 GB, free: 315.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.001267/5.588, allocations: 477.5 kB / 3.139 GB, free: 315.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.00249/5.591, allocations: 0.9688 MB / 3.14 GB, free: 315.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/5.591, allocations: 1.562 kB / 3.14 GB, free: 315.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009425/5.591, allocations: 453.3 kB / 3.141 GB, free: 315.2 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/5.594, allocations: 262.7 kB / 3.141 GB, free: 315.2 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/5.598, allocations: 1.577 MB / 3.142 GB, free: 314.5 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001303/5.599, allocations: 1.291 MB / 3.144 GB, free: 313.7 MB / 0.948 GB Notification: Performance of SimCode: time 1.252e-06/5.6, allocations: 0 / 3.144 GB, free: 313.7 MB / 0.948 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)