Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.373/1.373, allocations: 289.8 MB / 297 MB, free: 6.727 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.0009582/0.0009583, allocations: 188.3 kB / 366.3 MB, free: 2.004 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.085/1.085, allocations: 205.1 MB / 0.6256 GB, free: 7.484 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.0007716/0.0007716, allocations: 91.92 kB / 0.7395 GB, free: 39.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1915/0.1923, allocations: 122.4 MB / 0.8591 GB, free: 13.53 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4447/0.637, allocations: 116.3 MB / 0.9726 GB, free: 76.14 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.015/3.652, allocations: 2.102 GB / 3.074 GB, free: 7.398 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/3.652, allocations: 95.94 kB / 3.074 GB, free: 7.305 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4-maint.8.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 8.1.4-maint.8.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: 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.4595/4.112, allocations: 52.52 MB / 3.126 GB, free: 327.1 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/4.112, allocations: 8.938 kB / 3.126 GB, free: 327.1 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/4.113, allocations: 283 kB / 3.126 GB, free: 327 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/4.114, allocations: 0.8055 MB / 3.127 GB, free: 326.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/4.114, allocations: 30.53 kB / 3.127 GB, free: 326.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/4.114, allocations: 55.38 kB / 3.127 GB, free: 326.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001539/4.116, allocations: 1.186 MB / 3.128 GB, free: 326.2 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/4.117, allocations: 0.9801 MB / 3.129 GB, free: 325.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/4.117, allocations: 0 / 3.129 GB, free: 325.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.849e-05/4.117, allocations: 2.906 kB / 3.129 GB, free: 325.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.331e-05/4.117, allocations: 52.47 kB / 3.129 GB, free: 325.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004892/4.122, allocations: 4.196 MB / 3.133 GB, free: 323.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009429/4.123, allocations: 0.7038 MB / 3.134 GB, free: 322.8 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/4.124, allocations: 305.6 kB / 3.134 GB, free: 322.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 6.895e-05/4.124, allocations: 26.34 kB / 3.134 GB, free: 322.7 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004576/4.124, allocations: 414.3 kB / 3.134 GB, free: 322.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=80): time 2.364e-06/4.124, allocations: 0 / 3.134 GB, free: 322.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=80): time 0.001116/4.125, allocations: 0.6572 MB / 3.135 GB, free: 322.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/4.125, allocations: 347.4 kB / 3.135 GB, free: 321.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008593/4.126, allocations: 0.7736 MB / 3.136 GB, free: 321.5 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.519e-05/4.126, allocations: 29.77 kB / 3.136 GB, free: 321.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/4.126, allocations: 403.5 kB / 3.137 GB, free: 321.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/4.127, allocations: 251.8 kB / 3.137 GB, free: 320.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/4.127, allocations: 0 / 3.137 GB, free: 320.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 6.041e-05/4.127, allocations: 337.7 kB / 3.137 GB, free: 320.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/4.127, allocations: 214 kB / 3.137 GB, free: 320.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003855/4.127, allocations: 391 kB / 3.138 GB, free: 320.3 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003908/4.128, allocations: 291 kB / 3.138 GB, free: 320.2 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/4.128, allocations: 3.906 kB / 3.138 GB, free: 320.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001021/4.129, allocations: 0.7122 MB / 3.139 GB, free: 319.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001461/4.129, allocations: 0.9673 MB / 3.14 GB, free: 318.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/4.129, allocations: 3 kB / 3.14 GB, free: 318.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001552/4.129, allocations: 29.88 kB / 3.14 GB, free: 318.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006669/4.13, allocations: 169.2 kB / 3.14 GB, free: 318.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002629/4.13, allocations: 0.5565 MB / 3.14 GB, free: 318.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006579/4.131, allocations: 84.59 kB / 3.14 GB, free: 318.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.03e-05/4.131, allocations: 35.64 kB / 3.141 GB, free: 318.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 5.481e-06/4.131, allocations: 1.906 kB / 3.141 GB, free: 318.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008527/4.132, allocations: 0.575 MB / 3.141 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/4.132, allocations: 2.844 kB / 3.141 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.983e-06/4.132, allocations: 5.906 kB / 3.141 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006455/4.132, allocations: 178.4 kB / 3.141 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/4.132, allocations: 10.95 kB / 3.141 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005726/4.133, allocations: 80.22 kB / 3.141 GB, free: 318 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.687e-05/4.133, allocations: 30.94 kB / 3.141 GB, free: 318 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.0001854/4.133, allocations: 130 kB / 3.142 GB, free: 317.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/4.133, allocations: 100.4 kB / 3.142 GB, free: 317.8 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001563/4.135, allocations: 0.8928 MB / 3.142 GB, free: 317.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.057e-05/4.135, allocations: 10.69 kB / 3.142 GB, free: 317.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/4.135, allocations: 0 / 3.142 GB, free: 317.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/4.135, allocations: 10.62 kB / 3.142 GB, free: 317.3 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00255/4.138, allocations: 2.095 MB / 3.145 GB, free: 315.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/4.138, allocations: 2.906 kB / 3.145 GB, free: 315.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/4.138, allocations: 161.1 kB / 3.145 GB, free: 315.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000102/4.138, allocations: 20.02 kB / 3.145 GB, free: 315.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/4.138, allocations: 20.52 kB / 3.145 GB, free: 315.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006405/4.139, allocations: 1.23 MB / 3.146 GB, free: 314.6 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/4.139, allocations: 1.781 kB / 3.146 GB, free: 314.6 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009832/4.14, allocations: 0.8972 MB / 3.147 GB, free: 314 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001076/4.141, allocations: 1.299 MB / 3.148 GB, free: 313 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/4.142, allocations: 317 kB / 3.148 GB, free: 312.8 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/4.142, allocations: 6.875 kB / 3.148 GB, free: 312.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006266/4.142, allocations: 57.89 kB / 3.148 GB, free: 312.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/4.142, allocations: 63.28 kB / 3.149 GB, free: 312.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.623e-05/4.142, allocations: 35.2 kB / 3.149 GB, free: 312.7 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.0006518/4.143, allocations: 0.6013 MB / 3.149 GB, free: 312.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002789/4.146, allocations: 0.5431 MB / 3.15 GB, free: 312.2 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.0009523/4.147, allocations: 481.5 kB / 3.15 GB, free: 312 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001343/4.148, allocations: 0.9676 MB / 3.151 GB, free: 311.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/4.148, allocations: 6.812 kB / 3.151 GB, free: 311.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0004983/4.149, allocations: 452.9 kB / 3.151 GB, free: 311.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/4.15, allocations: 262 kB / 3.152 GB, free: 311.2 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/4.153, allocations: 1.572 MB / 3.153 GB, free: 310.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007823/4.153, allocations: 1.283 MB / 3.155 GB, free: 309.5 MB / 0.948 GB Notification: Performance of SimCode: time 3.11e-07/4.153, allocations: 0 / 3.155 GB, free: 309.5 MB / 0.948 GB (rm -f Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)