Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008944/0.0008944, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005638/0.005638, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.649/2.649, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003935, allocations: 8.125 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2615, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.006729/0.2683, allocations: 6.987 MB / 1.066 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1339/0.4022, allocations: 148 MB / 1.21 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000813/0.4031, allocations: 23.88 kB / 1.21 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0007263/0.4038, allocations: 270.3 kB / 1.21 GB, free: 9.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001848/0.4057, allocations: 0.7099 MB / 1.211 GB, free: 8.312 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.4077, allocations: 0.9188 MB / 1.212 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001861/0.4096, allocations: 1.924 MB / 1.214 GB, free: 5.469 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001427/0.411, allocations: 1.124 MB / 1.215 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006377/0.4116, allocations: 497.7 kB / 1.215 GB, free: 3.785 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007551/0.4124, allocations: 0.6026 MB / 1.216 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 9.603e-05/0.4125, allocations: 40 kB / 1.216 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008915/0.4134, allocations: 0.585 MB / 1.217 GB, free: 2.555 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.4137, allocations: 302.8 kB / 1.217 GB, free: 2.258 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.000489/0.4142, allocations: 0.619 MB / 1.218 GB, free: 1.629 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001576/0.4157, allocations: 1.985 MB / 1.219 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.4158, allocations: 0 / 1.219 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4158, allocations: 0 / 1.219 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.4158, allocations: 0 / 1.219 GB, free: 15.64 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 273 * Number of variables: 273 Notification: Performance of Generate backend data structure: time 0.002331/0.4181, allocations: 1.522 MB / 1.221 GB, free: 14.06 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.4182, allocations: 11.97 kB / 1.221 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001746/0.4183, allocations: 169 kB / 1.221 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.4195, allocations: 278.9 kB / 1.221 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.4206, allocations: 0.9488 MB / 1.222 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.723e-05/0.4207, allocations: 82.08 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.4208, allocations: 104 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.4226, allocations: 1.237 MB / 1.224 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.4227, allocations: 4 kB / 1.224 GB, free: 11.1 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.581e-05/0.4228, allocations: 47.98 kB / 1.224 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.653e-05/0.4228, allocations: 61.92 kB / 1.224 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.4248, allocations: 1.35 MB / 1.225 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005327/0.4301, allocations: 4.709 MB / 1.23 GB, free: 4.66 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001565/0.4317, allocations: 0.9043 MB / 1.231 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006422/0.4323, allocations: 373.9 kB / 1.231 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 6.097e-05/0.4324, allocations: 28.95 kB / 1.231 GB, free: 3.355 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007903/0.4332, allocations: 0.5383 MB / 1.231 GB, free: 2.789 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 3.086e-06/0.4332, allocations: 3.984 kB / 1.232 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of matching and sorting (n=89): time 0.002143/0.4354, allocations: 1.231 MB / 1.233 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/0.4355, allocations: 295.7 kB / 1.233 GB, free: 1.172 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.4366, allocations: 0.9536 MB / 1.234 GB, free: 200 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.458e-05/0.4366, allocations: 45.7 kB / 1.234 GB, free: 148 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003851/0.437, allocations: 0.5505 MB / 1.235 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.4372, allocations: 295.8 kB / 1.235 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.224e-05/0.4373, allocations: 69.69 kB / 1.235 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.4374, allocations: 341.9 kB / 1.235 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005188/0.438, allocations: 285.8 kB / 1.235 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000645/0.4386, allocations: 471.9 kB / 1.236 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.4397, allocations: 0.7168 MB / 1.237 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.4397, allocations: 0 / 1.237 GB, free: 13.33 MB / 0.9981 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001494/0.4412, allocations: 0.9225 MB / 1.237 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 7.752e-05/0.4413, allocations: 166.7 kB / 1.238 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.4414, allocations: 8 kB / 1.238 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001568/0.4415, allocations: 36.77 kB / 1.238 GB, free: 12.14 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000691/0.4422, allocations: 191.7 kB / 1.238 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009489/0.4432, allocations: 1.295 MB / 1.239 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/0.4439, allocations: 119.3 kB / 1.239 GB, free: 10.41 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.973e-05/0.444, allocations: 39.98 kB / 1.239 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.771e-06/0.444, allocations: 4 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001287/0.4453, allocations: 0.7768 MB / 1.24 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.4453, allocations: 0 / 1.24 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.486e-06/0.4453, allocations: 8.344 kB / 1.24 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006944/0.446, allocations: 195.7 kB / 1.24 GB, free: 9.387 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.446, allocations: 11.94 kB / 1.24 GB, free: 9.375 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000658/0.4467, allocations: 119.7 kB / 1.24 GB, free: 9.258 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.4468, allocations: 35.98 kB / 1.24 GB, free: 9.223 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0004258/0.4472, allocations: 418.8 kB / 1.241 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.4473, allocations: 114.7 kB / 1.241 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001879/0.4492, allocations: 1.08 MB / 1.242 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.4492, allocations: 12 kB / 1.242 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-06/0.4493, allocations: 0 / 1.242 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.4493, allocations: 3.984 kB / 1.242 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/0.4522, allocations: 2.389 MB / 1.244 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.4522, allocations: 7.938 kB / 1.244 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005871/0.4528, allocations: 155.8 kB / 1.244 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.629e-05/0.4529, allocations: 32.97 kB / 1.245 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.998e-05/0.4529, allocations: 27.97 kB / 1.245 GB, free: 4.887 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007753/0.4537, allocations: 1.276 MB / 1.246 GB, free: 3.477 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4537, allocations: 0 / 1.246 GB, free: 3.477 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.4553, allocations: 1.062 MB / 1.247 GB, free: 2.383 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.4556, allocations: 331.2 kB / 1.247 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001236/0.4558, allocations: 20 kB / 1.247 GB, free: 2.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007166/0.4565, allocations: 87.92 kB / 1.247 GB, free: 1.934 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.4566, allocations: 80.83 kB / 1.247 GB, free: 1.855 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-05/0.4567, allocations: 39.92 kB / 1.247 GB, free: 1.816 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007645/0.4575, allocations: 0.6729 MB / 1.248 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.352e-06/0.4575, allocations: 0 / 1.248 GB, free: 1.133 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001143/0.4586, allocations: 0.5918 MB / 1.249 GB, free: 0.5391 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.conTimMin.tNext,weaDat.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.4244/0.8831, allocations: 2.147 MB / 1.251 GB, free: 187.8 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002232/0.8853, allocations: 1.292 MB / 1.252 GB, free: 187.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.8853, allocations: 0.8125 kB / 1.252 GB, free: 187.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000761/0.8861, allocations: 0.5344 MB / 1.252 GB, free: 187.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.8878, allocations: 334.3 kB / 1.253 GB, free: 187.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.8982, allocations: 8.935 MB / 1.262 GB, free: 184 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000571/0.8988, allocations: 1.17 MB / 1.263 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001196/0.9, allocations: 422.2 kB / 1.263 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005673/0.9005, allocations: 495 kB / 1.264 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of SimCode: time 7.52e-07/0.9006, allocations: 0 / 1.264 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.33/3.23, allocations: 24.62 MB / 1.288 GB, free: 176.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000147/3.23, allocations: 288.7 kB / 1.288 GB, free: 175.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.484/6.714, allocations: 1.375 kB / 1.288 GB, free: 175.7 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)