Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_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.0008765/0.0008765, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.004874/0.004874, allocations: 169.8 kB / 16.26 MB, free: 6.68 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.221/1.221, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.08/2.08, allocations: 390.9 MB / 0.6664 GB, free: 2.336 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003126, allocations: 15.98 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.521/0.5213, allocations: 142.4 MB / 0.9552 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.005715/0.5271, allocations: 6.493 MB / 0.9615 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1389/0.666, allocations: 147.9 MB / 1.106 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000654/0.6667, allocations: 23.88 kB / 1.106 GB, free: 4.359 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006085/0.6673, allocations: 258.4 kB / 1.106 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001501/0.6688, allocations: 0.6683 MB / 1.107 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.6707, allocations: 0.9086 MB / 1.108 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.00152/0.6722, allocations: 1.85 MB / 1.11 GB, free: 0.6836 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/0.6735, allocations: 1.17 MB / 1.111 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004805/0.674, allocations: 477.7 kB / 1.111 GB, free: 14.97 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000664/0.6746, allocations: 0.6025 MB / 1.112 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.649e-05/0.6748, allocations: 36 kB / 1.112 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009022/0.6757, allocations: 0.5773 MB / 1.112 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002584/0.6759, allocations: 306.7 kB / 1.113 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0004416/0.6764, allocations: 0.6034 MB / 1.113 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001547/0.6779, allocations: 1.954 MB / 1.115 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.678, allocations: 0 / 1.115 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.312e-06/0.678, allocations: 3.938 kB / 1.115 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.678, allocations: 0 / 1.115 GB, free: 10.88 MB / 0.8731 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.002349/0.6803, allocations: 1.522 MB / 1.117 GB, free: 9.297 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.6804, allocations: 8.031 kB / 1.117 GB, free: 9.289 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001764/0.6806, allocations: 165 kB / 1.117 GB, free: 9.117 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001144/0.6817, allocations: 278.8 kB / 1.117 GB, free: 8.844 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001155/0.6829, allocations: 0.9566 MB / 1.118 GB, free: 7.844 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.024e-05/0.6829, allocations: 82.09 kB / 1.118 GB, free: 7.762 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001254/0.6831, allocations: 100 kB / 1.118 GB, free: 7.664 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.6849, allocations: 1.233 MB / 1.119 GB, free: 6.348 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.6849, allocations: 3.938 kB / 1.119 GB, free: 6.344 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-05/0.685, allocations: 44 kB / 1.119 GB, free: 6.301 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.255e-05/0.6851, allocations: 62 kB / 1.119 GB, free: 6.238 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.687, allocations: 1.35 MB / 1.121 GB, free: 4.879 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005392/0.6924, allocations: 4.547 MB / 1.125 GB, free: 112 kB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/0.694, allocations: 0.8926 MB / 1.126 GB, free: 15.21 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006319/0.6946, allocations: 374.1 kB / 1.126 GB, free: 14.85 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 6.95e-05/0.6947, allocations: 28.95 kB / 1.126 GB, free: 14.82 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008002/0.6955, allocations: 0.5422 MB / 1.127 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=89): time 2.084e-06/0.6955, allocations: 0 / 1.127 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of matching and sorting (n=89): time 0.002164/0.6977, allocations: 1.22 MB / 1.128 GB, free: 13 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.6978, allocations: 303.8 kB / 1.129 GB, free: 12.64 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/0.6989, allocations: 0.9534 MB / 1.129 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 6.374e-05/0.6989, allocations: 45.7 kB / 1.129 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003572/0.6993, allocations: 0.5506 MB / 1.13 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.6995, allocations: 287.8 kB / 1.13 GB, free: 10.77 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.26e-05/0.6996, allocations: 81.55 kB / 1.13 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.52e-05/0.6997, allocations: 338 kB / 1.131 GB, free: 10.34 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005076/0.7002, allocations: 281.8 kB / 1.131 GB, free: 10.07 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000636/0.7009, allocations: 472 kB / 1.131 GB, free: 9.543 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.702, allocations: 0.7128 MB / 1.132 GB, free: 8.797 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.702, allocations: 96 / 1.132 GB, free: 8.797 MB / 0.8887 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001459/0.7034, allocations: 0.9185 MB / 1.133 GB, free: 7.867 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 8.327e-05/0.7035, allocations: 170.8 kB / 1.133 GB, free: 7.664 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.7035, allocations: 8 kB / 1.133 GB, free: 7.656 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.7037, allocations: 36.77 kB / 1.133 GB, free: 7.617 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006871/0.7044, allocations: 187.8 kB / 1.133 GB, free: 7.434 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009294/0.7054, allocations: 1.289 MB / 1.135 GB, free: 6.008 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000715/0.7061, allocations: 127.2 kB / 1.135 GB, free: 5.883 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.92e-05/0.7062, allocations: 39.98 kB / 1.135 GB, free: 5.844 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 6.783e-06/0.7062, allocations: 4 kB / 1.135 GB, free: 5.84 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001255/0.7074, allocations: 0.7728 MB / 1.136 GB, free: 5.066 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.7074, allocations: 4.344 kB / 1.136 GB, free: 5.062 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.253e-06/0.7075, allocations: 12 kB / 1.136 GB, free: 5.051 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006814/0.7081, allocations: 195.7 kB / 1.136 GB, free: 4.859 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.7082, allocations: 4 kB / 1.136 GB, free: 4.855 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006522/0.7088, allocations: 112.2 kB / 1.136 GB, free: 4.746 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.817e-05/0.7089, allocations: 43.97 kB / 1.136 GB, free: 4.703 MB / 0.8887 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.0004388/0.7093, allocations: 420.7 kB / 1.136 GB, free: 4.281 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.7095, allocations: 114.6 kB / 1.136 GB, free: 4.168 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.7113, allocations: 1.076 MB / 1.137 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.7114, allocations: 8 kB / 1.137 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.7114, allocations: 0 / 1.137 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.7114, allocations: 7.984 kB / 1.137 GB, free: 3.059 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.7142, allocations: 2.389 MB / 1.14 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.7142, allocations: 3.938 kB / 1.14 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005737/0.7148, allocations: 171.7 kB / 1.14 GB, free: 424 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.8e-05/0.7149, allocations: 24.97 kB / 1.14 GB, free: 396 kB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.175e-05/0.715, allocations: 31.98 kB / 1.14 GB, free: 364 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007574/0.7157, allocations: 1.272 MB / 1.141 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.7158, allocations: 3.938 kB / 1.141 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.7172, allocations: 1.05 MB / 1.142 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.7176, allocations: 339.2 kB / 1.143 GB, free: 13.51 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.7178, allocations: 20 kB / 1.143 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006902/0.7184, allocations: 85.8 kB / 1.143 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.7186, allocations: 84.83 kB / 1.143 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.229e-05/0.7187, allocations: 39.98 kB / 1.143 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0007552/0.7194, allocations: 0.6652 MB / 1.144 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7194, allocations: 0 / 1.144 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00117/0.7206, allocations: 0.5646 MB / 1.144 GB, free: 12.05 MB / 0.9044 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.002903/0.7235, allocations: 2.16 MB / 1.146 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001984/0.7255, allocations: 1.291 MB / 1.147 GB, free: 8.754 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.7255, allocations: 4 kB / 1.147 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007063/0.7262, allocations: 0.5352 MB / 1.148 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.7277, allocations: 327 kB / 1.148 GB, free: 7.895 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01157/0.7393, allocations: 8.924 MB / 1.157 GB, free: 14.6 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006514/0.74, allocations: 1.166 MB / 1.158 GB, free: 13.41 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001148/0.7411, allocations: 420.2 kB / 1.159 GB, free: 12.99 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005847/0.7417, allocations: 0.4914 MB / 1.159 GB, free: 12.5 MB / 0.92 GB Notification: Performance of SimCode: time 4.3e-07/0.7417, allocations: 0 / 1.159 GB, free: 12.5 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.108/2.85, allocations: 24.16 MB / 1.183 GB, free: 4.695 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/2.85, allocations: 284 kB / 1.183 GB, free: 4.312 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.903/9.753, allocations: 0 / 1.183 GB, free: 4.312 MB / 0.9356 GB (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine.pipe 2>&1)