Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.232/1.232, allocations: 249.4 MB / 256.7 MB, free: 6.969 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.001029/0.001029, allocations: 189.2 kB / 316 MB, free: 3.566 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.165/1.165, allocations: 205.2 MB / 0.5667 GB, free: 15.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008444/0.0008443, allocations: 82.41 kB / 0.671 GB, free: 4.926 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3338/0.3347, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.4855, allocations: 106.3 MB / 0.8847 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.739/4.224, allocations: 2.22 GB / 3.104 GB, free: 183.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/4.224, allocations: 91.94 kB / 3.105 GB, free: 183.1 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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.1171/4.342, allocations: 52.53 MB / 3.156 GB, free: 130.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/4.342, allocations: 8 kB / 3.156 GB, free: 130.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001733/4.343, allocations: 293.9 kB / 3.156 GB, free: 130 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/4.345, allocations: 0.795 MB / 3.157 GB, free: 129.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.824e-05/4.345, allocations: 32 kB / 3.157 GB, free: 129.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/4.345, allocations: 56 kB / 3.157 GB, free: 129.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002056/4.347, allocations: 1.179 MB / 3.158 GB, free: 127.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/4.349, allocations: 0.9899 MB / 3.159 GB, free: 126.8 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/4.349, allocations: 3.938 kB / 3.159 GB, free: 126.8 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/4.349, allocations: 4 kB / 3.159 GB, free: 126.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.635e-05/4.35, allocations: 49.98 kB / 3.159 GB, free: 126.8 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005946/4.356, allocations: 4.196 MB / 3.163 GB, free: 122.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009597/4.356, allocations: 0.7119 MB / 3.164 GB, free: 121.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004253/4.357, allocations: 298.8 kB / 3.164 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.595e-05/4.357, allocations: 32.59 kB / 3.164 GB, free: 121.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004838/4.357, allocations: 416.6 kB / 3.165 GB, free: 120.9 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=80): time 3.407e-06/4.358, allocations: 0 / 3.165 GB, free: 120.9 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80): time 0.001142/4.359, allocations: 0.6557 MB / 3.165 GB, free: 120.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/4.359, allocations: 346.8 kB / 3.166 GB, free: 119.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009824/4.36, allocations: 0.7663 MB / 3.166 GB, free: 119 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.421e-05/4.36, allocations: 29.7 kB / 3.166 GB, free: 119 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/4.36, allocations: 407.6 kB / 3.167 GB, free: 118.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/4.36, allocations: 252.1 kB / 3.167 GB, free: 118.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/4.36, allocations: 0 / 3.167 GB, free: 118.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.793e-05/4.36, allocations: 341.9 kB / 3.167 GB, free: 118 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/4.361, allocations: 213.5 kB / 3.168 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/4.361, allocations: 397.5 kB / 3.168 GB, free: 117.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003912/4.361, allocations: 285.7 kB / 3.168 GB, free: 117.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/4.361, allocations: 0 / 3.168 GB, free: 117.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001085/4.362, allocations: 0.7131 MB / 3.169 GB, free: 116.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001692/4.363, allocations: 0.9631 MB / 3.17 GB, free: 115.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/4.363, allocations: 4 kB / 3.17 GB, free: 115.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001727/4.363, allocations: 28.78 kB / 3.17 GB, free: 115.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/4.364, allocations: 171.8 kB / 3.17 GB, free: 115.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002786/4.364, allocations: 0.5484 MB / 3.171 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007136/4.365, allocations: 83.34 kB / 3.171 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.887e-05/4.365, allocations: 31.98 kB / 3.171 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.037e-06/4.365, allocations: 11.98 kB / 3.171 GB, free: 114.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008149/4.365, allocations: 0.5711 MB / 3.171 GB, free: 113.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/4.365, allocations: 7.984 kB / 3.171 GB, free: 113.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.945e-06/4.365, allocations: 4 kB / 3.171 GB, free: 113.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000643/4.366, allocations: 176.1 kB / 3.171 GB, free: 113.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/4.366, allocations: 15.92 kB / 3.171 GB, free: 113.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006513/4.367, allocations: 71.41 kB / 3.171 GB, free: 113.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/4.367, allocations: 31.98 kB / 3.172 GB, free: 113.5 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.0001784/4.367, allocations: 129.2 kB / 3.172 GB, free: 113.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001693/4.367, allocations: 106.8 kB / 3.172 GB, free: 113.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/4.369, allocations: 0.8925 MB / 3.173 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/4.369, allocations: 12 kB / 3.173 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/4.369, allocations: 4 kB / 3.173 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/4.369, allocations: 3.984 kB / 3.173 GB, free: 112.4 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002608/4.371, allocations: 2.093 MB / 3.175 GB, free: 110.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/4.371, allocations: 0 / 3.175 GB, free: 110.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005914/4.372, allocations: 163.8 kB / 3.175 GB, free: 110 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000106/4.372, allocations: 24.75 kB / 3.175 GB, free: 110 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.421e-05/4.372, allocations: 15.98 kB / 3.175 GB, free: 110 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006388/4.373, allocations: 1.229 MB / 3.176 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/4.373, allocations: 0 / 3.176 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001051/4.374, allocations: 0.8997 MB / 3.177 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001099/4.375, allocations: 1.298 MB / 3.178 GB, free: 106.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004158/4.375, allocations: 327.4 kB / 3.179 GB, free: 106 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001741/4.376, allocations: 4 kB / 3.179 GB, free: 106 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006543/4.376, allocations: 63.94 kB / 3.179 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/4.376, allocations: 52.7 kB / 3.179 GB, free: 105.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.786e-05/4.376, allocations: 35.98 kB / 3.179 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0006573/4.377, allocations: 0.6006 MB / 3.179 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002708/4.38, allocations: 0.537 MB / 3.18 GB, free: 104.7 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.001045/4.381, allocations: 494.2 kB / 3.18 GB, free: 104.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001506/4.382, allocations: 0.9654 MB / 3.181 GB, free: 103.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/4.382, allocations: 1.25 kB / 3.181 GB, free: 103.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005619/4.383, allocations: 458 kB / 3.182 GB, free: 102.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/4.384, allocations: 256.3 kB / 3.182 GB, free: 102.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003275/4.387, allocations: 1.579 MB / 3.183 GB, free: 101 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009251/4.388, allocations: 1.275 MB / 3.185 GB, free: 99.7 MB / 0.8698 GB Notification: Performance of SimCode: time 4.01e-07/4.388, allocations: 4 kB / 3.185 GB, free: 99.69 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)