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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.6/1.6, allocations: 249.3 MB / 261.8 MB, free: 5.863 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.001179/0.00118, allocations: 182.1 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.884/1.884, allocations: 205.2 MB / 0.572 GB, free: 10.63 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.0009286/0.0009286, allocations: 90.47 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 5.81e-05/5.819e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2458, allocations: 106.3 MB / 0.8919 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.336/6.581, allocations: 2.219 GB / 3.111 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/6.582, allocations: 99.94 kB / 3.111 GB, free: 148.5 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: Performance of FrontEnd - DAE generated: time 0.1123/6.694, allocations: 50.32 MB / 3.161 GB, free: 97.89 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.673e-06/6.694, allocations: 0 / 3.161 GB, free: 97.89 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.846e-05/6.694, allocations: 32 kB / 3.161 GB, free: 97.86 MB / 0.8698 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.002116/6.696, allocations: 1.29 MB / 3.162 GB, free: 96.52 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/6.696, allocations: 12.03 kB / 3.162 GB, free: 96.5 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000156/6.696, allocations: 153 kB / 3.162 GB, free: 96.35 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/6.698, allocations: 281.9 kB / 3.162 GB, free: 96.07 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001218/6.699, allocations: 0.7872 MB / 3.163 GB, free: 95.24 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.707e-05/6.699, allocations: 78 kB / 3.163 GB, free: 95.16 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/6.699, allocations: 95.98 kB / 3.163 GB, free: 95.07 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/6.701, allocations: 1.115 MB / 3.164 GB, free: 93.88 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/6.701, allocations: 4 kB / 3.164 GB, free: 93.88 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.934e-05/6.701, allocations: 47.98 kB / 3.164 GB, free: 93.83 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-05/6.701, allocations: 57.86 kB / 3.164 GB, free: 93.77 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/6.702, allocations: 1.237 MB / 3.166 GB, free: 92.54 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005141/6.708, allocations: 4.367 MB / 3.17 GB, free: 87.95 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/6.709, allocations: 0.7728 MB / 3.171 GB, free: 87.17 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004632/6.709, allocations: 319.1 kB / 3.171 GB, free: 86.86 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.843e-05/6.709, allocations: 28.8 kB / 3.171 GB, free: 86.83 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000616/6.71, allocations: 448.1 kB / 3.171 GB, free: 86.36 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=80): time 3.136e-06/6.71, allocations: 0 / 3.171 GB, free: 86.36 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80): time 0.001205/6.711, allocations: 0.7106 MB / 3.172 GB, free: 85.64 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/6.711, allocations: 342.9 kB / 3.172 GB, free: 85.23 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/6.712, allocations: 0.8745 MB / 3.173 GB, free: 84.32 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.281e-05/6.712, allocations: 41.7 kB / 3.173 GB, free: 84.28 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/6.713, allocations: 0.5232 MB / 3.174 GB, free: 83.75 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/6.713, allocations: 272.1 kB / 3.174 GB, free: 83.48 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.277e-05/6.713, allocations: 12 kB / 3.174 GB, free: 83.46 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.838e-05/6.713, allocations: 334 kB / 3.174 GB, free: 83.13 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/6.713, allocations: 225.5 kB / 3.175 GB, free: 82.91 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004378/6.714, allocations: 419 kB / 3.175 GB, free: 82.44 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003907/6.714, allocations: 290 kB / 3.175 GB, free: 82.16 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/6.714, allocations: 0 / 3.175 GB, free: 82.16 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001035/6.715, allocations: 0.777 MB / 3.176 GB, free: 81.37 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002145/6.715, allocations: 0.9593 MB / 3.177 GB, free: 80.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/6.716, allocations: 4 kB / 3.177 GB, free: 80.33 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001902/6.716, allocations: 36.83 kB / 3.177 GB, free: 80.29 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/6.716, allocations: 163.8 kB / 3.177 GB, free: 80.13 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003039/6.717, allocations: 0.5406 MB / 3.178 GB, free: 79.57 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006473/6.717, allocations: 107.3 kB / 3.178 GB, free: 79.46 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.049e-05/6.717, allocations: 35.98 kB / 3.178 GB, free: 79.43 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.196e-06/6.717, allocations: 4 kB / 3.178 GB, free: 79.42 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000902/6.718, allocations: 0.6429 MB / 3.178 GB, free: 78.77 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/6.718, allocations: 0 / 3.178 GB, free: 78.77 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/6.718, allocations: 11.95 kB / 3.178 GB, free: 78.76 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005869/6.719, allocations: 171.7 kB / 3.179 GB, free: 78.59 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/6.719, allocations: 4 kB / 3.179 GB, free: 78.59 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005371/6.72, allocations: 107.4 kB / 3.179 GB, free: 78.48 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/6.72, allocations: 35.98 kB / 3.179 GB, free: 78.45 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.0001921/6.72, allocations: 149.9 kB / 3.179 GB, free: 78.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/6.72, allocations: 102.8 kB / 3.179 GB, free: 78.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001564/6.722, allocations: 0.9489 MB / 3.18 GB, free: 77.23 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/6.722, allocations: 11.94 kB / 3.18 GB, free: 77.22 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/6.722, allocations: 0 / 3.18 GB, free: 77.22 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/6.722, allocations: 11.97 kB / 3.18 GB, free: 77.21 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/6.724, allocations: 2.278 MB / 3.182 GB, free: 74.85 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/6.724, allocations: 3.984 kB / 3.182 GB, free: 74.84 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/6.725, allocations: 159.9 kB / 3.182 GB, free: 74.69 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001061/6.725, allocations: 28.84 kB / 3.182 GB, free: 74.66 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/6.725, allocations: 23.98 kB / 3.182 GB, free: 74.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007479/6.726, allocations: 1.272 MB / 3.184 GB, free: 73.22 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/6.726, allocations: 4.031 kB / 3.184 GB, free: 73.22 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/6.727, allocations: 0.9611 MB / 3.185 GB, free: 72.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/6.727, allocations: 323.4 kB / 3.185 GB, free: 71.87 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/6.727, allocations: 20 kB / 3.185 GB, free: 71.85 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005992/6.728, allocations: 71.94 kB / 3.185 GB, free: 71.78 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/6.728, allocations: 68.62 kB / 3.185 GB, free: 71.71 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.633e-05/6.728, allocations: 35.98 kB / 3.185 GB, free: 71.68 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0007759/6.729, allocations: 0.6796 MB / 3.186 GB, free: 70.98 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.61e-07/6.729, allocations: 0 / 3.186 GB, free: 70.98 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001327/6.73, allocations: 0.5567 MB / 3.186 GB, free: 70.42 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.00233/6.733, allocations: 2.218 MB / 3.188 GB, free: 68.25 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001535/6.734, allocations: 1.006 MB / 3.189 GB, free: 67.24 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/6.734, allocations: 4 kB / 3.189 GB, free: 67.23 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0005171/6.735, allocations: 474.9 kB / 3.19 GB, free: 66.76 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/6.736, allocations: 290.9 kB / 3.19 GB, free: 66.48 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003027/6.739, allocations: 1.837 MB / 3.192 GB, free: 64.59 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004916/6.739, allocations: 1.159 MB / 3.193 GB, free: 63.4 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.00146/6.741, allocations: 0.5541 MB / 3.194 GB, free: 62.84 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004435/6.741, allocations: 439.3 kB / 3.194 GB, free: 62.41 MB / 0.8698 GB Notification: Performance of SimCode: time 1.994e-06/6.741, allocations: 0 / 3.194 GB, free: 62.41 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04679/6.788, allocations: 25.23 MB / 3.219 GB, free: 37.39 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/6.789, allocations: 237.4 kB / 3.219 GB, free: 37.07 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.156/9.945, allocations: 0 / 3.219 GB, free: 37.07 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)