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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001333/0.001333, allocations: 102.6 kB / 15.06 MB, free: 1.098 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.001544/0.001544, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.589/2.589, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003101/0.0003101, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6933/0.6936, allocations: 142.3 MB / 0.9536 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Sources.Examples.WindTurbine): time 0.007422/0.7011, allocations: 5.978 MB / 0.9594 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1673/0.8684, allocations: 128.7 MB / 1.085 GB, free: 9.117 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.8697, allocations: 23.88 kB / 1.085 GB, free: 9.094 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006557/0.8703, allocations: 194.8 kB / 1.085 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.8725, allocations: 0.6763 MB / 1.086 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002459/0.8749, allocations: 0.8296 MB / 1.087 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001894/0.8768, allocations: 1.075 MB / 1.088 GB, free: 6.328 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.8782, allocations: 0.8955 MB / 1.089 GB, free: 5.383 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007111/0.8789, allocations: 454.1 kB / 1.089 GB, free: 4.938 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007306/0.8796, allocations: 0.4899 MB / 1.09 GB, free: 4.445 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.8798, allocations: 40 kB / 1.09 GB, free: 4.406 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00105/0.8808, allocations: 379.5 kB / 1.09 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003173/0.8812, allocations: 294.9 kB / 1.09 GB, free: 3.746 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.8814, allocations: 253 kB / 1.091 GB, free: 3.492 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001823/0.8833, allocations: 1.527 MB / 1.092 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.8833, allocations: 0 / 1.092 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of FrontEnd: time 4.248e-06/0.8833, allocations: 0 / 1.092 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 3.638e-05/0.8833, allocations: 0 / 1.092 GB, free: 1.965 MB / 0.8419 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.003081/0.8864, allocations: 1.535 MB / 1.094 GB, free: 384 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.8865, allocations: 12.03 kB / 1.094 GB, free: 372 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002286/0.8867, allocations: 156.8 kB / 1.094 GB, free: 204 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/0.8881, allocations: 289.9 kB / 1.094 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001642/0.8897, allocations: 0.9141 MB / 1.095 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.312e-05/0.8898, allocations: 86.06 kB / 1.095 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.89, allocations: 108 kB / 1.095 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00215/0.8922, allocations: 1.222 MB / 1.096 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.8922, allocations: 0 / 1.096 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.8923, allocations: 44 kB / 1.096 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.065e-05/0.8924, allocations: 54 kB / 1.096 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002207/0.8946, allocations: 1.346 MB / 1.098 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00876/0.9034, allocations: 4.532 MB / 1.102 GB, free: 7.25 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.9054, allocations: 0.8987 MB / 1.103 GB, free: 6.344 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001057/0.9055, allocations: 36.94 kB / 1.103 GB, free: 6.309 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009823/0.9065, allocations: 0.542 MB / 1.104 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=89): time 2.926e-06/0.9065, allocations: 0 / 1.104 GB, free: 5.738 MB / 0.8575 GB Notification: Performance of matching and sorting (n=89): time 0.002613/0.9091, allocations: 1.221 MB / 1.105 GB, free: 4.492 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001858/0.9093, allocations: 307.7 kB / 1.105 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/0.9108, allocations: 0.9456 MB / 1.106 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.582e-05/0.9109, allocations: 45.7 kB / 1.106 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004768/0.9114, allocations: 0.5466 MB / 1.107 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002818/0.9117, allocations: 291.8 kB / 1.107 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.9118, allocations: 20 kB / 1.107 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.9119, allocations: 341.9 kB / 1.107 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005435/0.9125, allocations: 281.8 kB / 1.107 GB, free: 1.625 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007746/0.9132, allocations: 467.9 kB / 1.108 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/0.9139, allocations: 338.9 kB / 1.108 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.9139, allocations: 4 kB / 1.108 GB, free: 0.7773 MB / 0.8575 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001923/0.9159, allocations: 0.9149 MB / 1.109 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006629/0.9166, allocations: 1.059 MB / 1.11 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.9166, allocations: 4 kB / 1.11 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002747/0.9169, allocations: 24.84 kB / 1.11 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008447/0.9177, allocations: 195.7 kB / 1.11 GB, free: 14.49 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001586/0.9193, allocations: 1.289 MB / 1.112 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009573/0.9203, allocations: 128 kB / 1.112 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-05/0.9204, allocations: 39.92 kB / 1.112 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 9.067e-06/0.9204, allocations: 4 kB / 1.112 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00142/0.9218, allocations: 0.7692 MB / 1.112 GB, free: 12.13 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.9218, allocations: 3.938 kB / 1.112 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.9219, allocations: 15.94 kB / 1.113 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007445/0.9226, allocations: 191.7 kB / 1.113 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.9226, allocations: 8 kB / 1.113 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007216/0.9234, allocations: 124.5 kB / 1.113 GB, free: 11.79 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/0.9234, allocations: 39.97 kB / 1.113 GB, free: 11.75 MB / 0.8731 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 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.weaDat.locTim.tNext,weaDat.locTim.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.decAng.tNext,weaDat.decAng.tNext) * 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 (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.0008625/0.9243, allocations: 419.7 kB / 1.113 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.9245, allocations: 114.6 kB / 1.113 GB, free: 11.22 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002117/0.9266, allocations: 1.076 MB / 1.114 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.9267, allocations: 12 kB / 1.114 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.9267, allocations: 0 / 1.114 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/0.9267, allocations: 7.969 kB / 1.114 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.9284, allocations: 1.383 MB / 1.116 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.9284, allocations: 0 / 1.116 GB, free: 8.664 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000638/0.9291, allocations: 163.8 kB / 1.116 GB, free: 8.504 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.9292, allocations: 24.84 kB / 1.116 GB, free: 8.477 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.426e-05/0.9292, allocations: 23.98 kB / 1.116 GB, free: 8.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009603/0.9302, allocations: 1.28 MB / 1.117 GB, free: 7.039 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.9302, allocations: 256 / 1.117 GB, free: 7.039 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00161/0.9318, allocations: 1.002 MB / 1.118 GB, free: 5.996 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004849/0.9323, allocations: 331.2 kB / 1.119 GB, free: 5.652 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001411/0.9325, allocations: 24 kB / 1.119 GB, free: 5.629 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006817/0.9332, allocations: 92.81 kB / 1.119 GB, free: 5.539 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.9333, allocations: 72.89 kB / 1.119 GB, free: 5.469 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.756e-05/0.9334, allocations: 35.98 kB / 1.119 GB, free: 5.434 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0008595/0.9343, allocations: 0.6574 MB / 1.119 GB, free: 4.766 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9343, allocations: 4 kB / 1.119 GB, free: 4.762 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001382/0.9357, allocations: 0.5685 MB / 1.12 GB, free: 4.191 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.decAng.tNext,weaDat.eqnTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.tNext,weaDat.locTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.003357/0.939, allocations: 2.225 MB / 1.122 GB, free: 2.133 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002319/0.9414, allocations: 1.278 MB / 1.123 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.9414, allocations: 0 / 1.123 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0007849/0.9422, allocations: 0.5286 MB / 1.124 GB, free: 312 kB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001226/0.9434, allocations: 299.5 kB / 1.124 GB, free: 20 kB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.9551, allocations: 8.176 MB / 1.132 GB, free: 7.551 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009331/0.9561, allocations: 1.193 MB / 1.133 GB, free: 6.324 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.001431/0.9575, allocations: 416.4 kB / 1.134 GB, free: 5.914 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007474/0.9583, allocations: 0.4953 MB / 1.134 GB, free: 5.418 MB / 0.8887 GB Notification: Performance of SimCode: time 1.072e-06/0.9583, allocations: 0 / 1.134 GB, free: 5.418 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05114/1.009, allocations: 25.58 MB / 1.159 GB, free: 12.19 MB / 0.92 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000227/1.01, allocations: 253.2 kB / 1.159 GB, free: 11.86 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.535, allocations: 8.062 kB / 1.159 GB, free: 11.85 MB / 0.92 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat