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: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.287/1.287, allocations: 285.5 MB / 292.8 MB, free: 10.47 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.001048/0.001048, allocations: 185.3 kB / 361.1 MB, free: 7.109 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9858/0.9858, allocations: 205.1 MB / 0.6195 GB, free: 10.34 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.0007804/0.0007804, allocations: 103.1 kB / 0.7326 GB, free: 44.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1689/0.1697, allocations: 121.4 MB / 0.8511 GB, free: 2.926 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.5755, allocations: 115.3 MB / 0.9637 GB, free: 78.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 2.852/3.428, allocations: 2.101 GB / 3.064 GB, free: 328.4 MB / 0.9323 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/3.428, allocations: 96.89 kB / 3.065 GB, free: 328.4 MB / 0.9323 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: 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.1055/3.534, allocations: 52.52 MB / 3.116 GB, free: 283.9 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/3.534, allocations: 13.53 kB / 3.116 GB, free: 283.9 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/3.535, allocations: 290 kB / 3.116 GB, free: 283.6 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00122/3.536, allocations: 0.7989 MB / 3.117 GB, free: 282.8 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.551e-05/3.536, allocations: 32.75 kB / 3.117 GB, free: 282.7 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/3.536, allocations: 56 kB / 3.117 GB, free: 282.7 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001484/3.538, allocations: 1.175 MB / 3.118 GB, free: 281.5 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/3.539, allocations: 0.9821 MB / 3.119 GB, free: 280.5 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/3.539, allocations: 4 kB / 3.119 GB, free: 280.5 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.053e-05/3.539, allocations: 0 / 3.119 GB, free: 280.5 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.384e-05/3.539, allocations: 57.97 kB / 3.119 GB, free: 280.4 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004579/3.544, allocations: 4.209 MB / 3.123 GB, free: 276 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008535/3.545, allocations: 0.7085 MB / 3.124 GB, free: 275.3 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000394/3.545, allocations: 302.7 kB / 3.124 GB, free: 275 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 6.295e-05/3.545, allocations: 32.67 kB / 3.124 GB, free: 274.9 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004398/3.546, allocations: 416.6 kB / 3.125 GB, free: 274.5 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=80): time 1.994e-06/3.546, allocations: 0 / 3.125 GB, free: 274.5 MB / 0.9323 GB Notification: Performance of matching and sorting (n=80): time 0.0009875/3.547, allocations: 0.6519 MB / 3.125 GB, free: 273.8 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/3.547, allocations: 346.7 kB / 3.126 GB, free: 273.4 MB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007983/3.548, allocations: 0.7702 MB / 3.126 GB, free: 272.7 MB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 5.213e-05/3.548, allocations: 25.7 kB / 3.126 GB, free: 272.6 MB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001532/3.548, allocations: 403.5 kB / 3.127 GB, free: 272.2 MB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 0.000117/3.548, allocations: 260.3 kB / 3.127 GB, free: 272 MB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/3.548, allocations: 0 / 3.127 GB, free: 272 MB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 4.546e-05/3.548, allocations: 334 kB / 3.127 GB, free: 271.6 MB / 0.9323 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/3.548, allocations: 213.5 kB / 3.128 GB, free: 271.4 MB / 0.9323 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003549/3.549, allocations: 394.3 kB / 3.128 GB, free: 271 MB / 0.9323 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/3.549, allocations: 283.4 kB / 3.128 GB, free: 270.7 MB / 0.9323 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/3.549, allocations: 11.84 kB / 3.128 GB, free: 270.7 MB / 0.9323 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.0009524/3.55, allocations: 0.7171 MB / 3.129 GB, free: 270 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001249/3.55, allocations: 0.9591 MB / 3.13 GB, free: 268.9 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/3.55, allocations: 4 kB / 3.13 GB, free: 268.9 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001376/3.55, allocations: 24.84 kB / 3.13 GB, free: 268.9 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/3.551, allocations: 175.7 kB / 3.13 GB, free: 268.7 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002287/3.551, allocations: 0.5406 MB / 3.131 GB, free: 268.2 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000603/3.552, allocations: 87.36 kB / 3.131 GB, free: 268.1 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.408e-05/3.552, allocations: 34.02 kB / 3.131 GB, free: 268 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 6.612e-06/3.552, allocations: 5.719 kB / 3.131 GB, free: 268 MB / 0.9323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007625/3.553, allocations: 0.5789 MB / 3.131 GB, free: 267.4 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/3.553, allocations: 5.125 kB / 3.131 GB, free: 267.4 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.812e-06/3.553, allocations: 8 kB / 3.131 GB, free: 267.4 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006228/3.553, allocations: 171.8 kB / 3.131 GB, free: 267.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/3.553, allocations: 8.25 kB / 3.131 GB, free: 267.3 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/3.554, allocations: 79.39 kB / 3.132 GB, free: 267.2 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.16e-05/3.554, allocations: 35.98 kB / 3.132 GB, free: 267.1 MB / 0.9323 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.0001354/3.554, allocations: 125.9 kB / 3.132 GB, free: 267 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/3.554, allocations: 106.7 kB / 3.132 GB, free: 266.9 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001369/3.555, allocations: 0.8873 MB / 3.133 GB, free: 266 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/3.556, allocations: 15.98 kB / 3.133 GB, free: 266 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/3.556, allocations: 4 kB / 3.133 GB, free: 266 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/3.556, allocations: 3.984 kB / 3.133 GB, free: 266 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/3.558, allocations: 2.098 MB / 3.135 GB, free: 263.8 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/3.558, allocations: 4 kB / 3.135 GB, free: 263.8 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005691/3.558, allocations: 151.8 kB / 3.135 GB, free: 263.7 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.637e-05/3.558, allocations: 28.84 kB / 3.135 GB, free: 263.7 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.573e-05/3.558, allocations: 16.67 kB / 3.135 GB, free: 263.6 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005431/3.559, allocations: 1.217 MB / 3.136 GB, free: 262.3 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/3.559, allocations: 9.375 kB / 3.136 GB, free: 262.3 MB / 0.9323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009067/3.56, allocations: 0.8974 MB / 3.137 GB, free: 261.3 MB / 0.9323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009846/3.561, allocations: 1.299 MB / 3.138 GB, free: 260 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003337/3.561, allocations: 315.5 kB / 3.139 GB, free: 259.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/3.561, allocations: 4 kB / 3.139 GB, free: 259.7 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005983/3.562, allocations: 63.94 kB / 3.139 GB, free: 259.6 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.366e-05/3.562, allocations: 64.53 kB / 3.139 GB, free: 259.5 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.903e-05/3.562, allocations: 35.98 kB / 3.139 GB, free: 259.5 MB / 0.9323 GB Notification: Performance of sort global known variables: time 0.0005384/3.563, allocations: 0.5968 MB / 3.139 GB, free: 258.9 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.002281/3.565, allocations: 0.5488 MB / 3.14 GB, free: 258.4 MB / 0.9323 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.0008019/3.566, allocations: 487.5 kB / 3.14 GB, free: 258 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001159/3.567, allocations: 0.9657 MB / 3.141 GB, free: 257 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/3.567, allocations: 4 kB / 3.141 GB, free: 257 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0004419/3.567, allocations: 450.1 kB / 3.142 GB, free: 256.6 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009983/3.568, allocations: 265.9 kB / 3.142 GB, free: 256.3 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00242/3.571, allocations: 1.579 MB / 3.143 GB, free: 254.7 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007273/3.572, allocations: 1.283 MB / 3.145 GB, free: 253.4 MB / 0.9323 GB Notification: Performance of SimCode: time 2.8e-07/3.572, allocations: 3.938 kB / 3.145 GB, free: 253.4 MB / 0.9323 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)