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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.459/2.459, allocations: 393.5 MB / 408.4 MB, free: 10.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 188 kB / 0.4901 GB, free: 2.238 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.665/1.665, allocations: 223.1 MB / 0.7992 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001103, allocations: 96.25 kB / 0.9396 GB, free: 1.93 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.000426, allocations: 8 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3508/0.3513, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.834/5.185, allocations: 1.761 GB / 2.991 GB, free: 225.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003693/5.186, allocations: 109 kB / 2.991 GB, free: 225.2 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28: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 10.0.0-master/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 10.0.0-master/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.1329/5.319, allocations: 56.77 MB / 3.046 GB, free: 168.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 3.938e-06/5.319, allocations: 0 / 3.046 GB, free: 168.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002144/5.319, allocations: 31.98 kB / 3.046 GB, free: 168.1 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.004672/5.324, allocations: 1.496 MB / 3.048 GB, free: 166.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 6.031e-05/5.324, allocations: 8.562 kB / 3.048 GB, free: 166.5 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005808/5.324, allocations: 164.8 kB / 3.048 GB, free: 166.4 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00182/5.326, allocations: 274 kB / 3.048 GB, free: 166.1 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/5.328, allocations: 0.8105 MB / 3.049 GB, free: 165.3 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.609e-05/5.328, allocations: 74 kB / 3.049 GB, free: 165.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/5.328, allocations: 92 kB / 3.049 GB, free: 165.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/5.331, allocations: 1.162 MB / 3.05 GB, free: 163.9 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.179e-05/5.331, allocations: 0 / 3.05 GB, free: 163.9 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/5.331, allocations: 44 kB / 3.05 GB, free: 163.8 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.298e-05/5.331, allocations: 49.98 kB / 3.05 GB, free: 163.8 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/5.333, allocations: 1.303 MB / 3.052 GB, free: 162.5 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006976/5.34, allocations: 4.381 MB / 3.056 GB, free: 157.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/5.341, allocations: 0.8229 MB / 3.057 GB, free: 157 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 8.333e-05/5.342, allocations: 28.61 kB / 3.057 GB, free: 157 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008031/5.342, allocations: 481.7 kB / 3.057 GB, free: 156.5 MB / 1.167 GB Notification: Performance of pre-optimization done (n=80): time 4.108e-06/5.342, allocations: 0 / 3.057 GB, free: 156.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=80): time 0.00224/5.345, allocations: 1.093 MB / 3.058 GB, free: 155.4 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/5.345, allocations: 346.7 kB / 3.059 GB, free: 155 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001556/5.346, allocations: 0.8881 MB / 3.059 GB, free: 154.1 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.672e-05/5.346, allocations: 45.69 kB / 3.06 GB, free: 154 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003991/5.347, allocations: 0.527 MB / 3.06 GB, free: 153.5 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/5.347, allocations: 260.2 kB / 3.06 GB, free: 153.2 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/5.347, allocations: 16 kB / 3.06 GB, free: 153.2 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.398e-05/5.347, allocations: 337.9 kB / 3.061 GB, free: 152.9 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004422/5.348, allocations: 257.8 kB / 3.061 GB, free: 152.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005671/5.348, allocations: 441.3 kB / 3.061 GB, free: 152.1 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005277/5.349, allocations: 318.8 kB / 3.062 GB, free: 151.8 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/5.349, allocations: 4 kB / 3.062 GB, free: 151.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001462/5.35, allocations: 0.8251 MB / 3.062 GB, free: 151 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002659/5.351, allocations: 0.9678 MB / 3.063 GB, free: 149.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/5.351, allocations: 0 / 3.063 GB, free: 149.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002114/5.351, allocations: 28.78 kB / 3.063 GB, free: 149.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/5.352, allocations: 175.8 kB / 3.064 GB, free: 149.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003085/5.352, allocations: 0.5367 MB / 3.064 GB, free: 149.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008571/5.353, allocations: 107.3 kB / 3.064 GB, free: 149 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.171e-05/5.353, allocations: 35.94 kB / 3.064 GB, free: 149 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/5.353, allocations: 5.094 kB / 3.064 GB, free: 149 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001149/5.354, allocations: 0.6949 MB / 3.065 GB, free: 148.3 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/5.354, allocations: 0 / 3.065 GB, free: 148.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.215e-06/5.354, allocations: 8 kB / 3.065 GB, free: 148.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006629/5.355, allocations: 171.8 kB / 3.065 GB, free: 148.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/5.355, allocations: 7.938 kB / 3.065 GB, free: 148.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007989/5.356, allocations: 111.4 kB / 3.065 GB, free: 148 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.897e-05/5.356, allocations: 31.98 kB / 3.065 GB, free: 148 MB / 1.167 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 () * Number of clocked 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.0006159/5.356, allocations: 396.9 kB / 3.066 GB, free: 147.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/5.356, allocations: 110.6 kB / 3.066 GB, free: 147.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/5.358, allocations: 0.9934 MB / 3.067 GB, free: 146.5 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/5.358, allocations: 11.94 kB / 3.067 GB, free: 146.5 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/5.358, allocations: 0 / 3.067 GB, free: 146.5 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/5.358, allocations: 7.984 kB / 3.067 GB, free: 146.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/5.36, allocations: 1.351 MB / 3.068 GB, free: 145 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/5.36, allocations: 7.984 kB / 3.068 GB, free: 145 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000589/5.361, allocations: 155.9 kB / 3.068 GB, free: 144.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/5.361, allocations: 24.84 kB / 3.068 GB, free: 144.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.504e-05/5.361, allocations: 27.97 kB / 3.068 GB, free: 144.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007666/5.362, allocations: 1.288 MB / 3.069 GB, free: 143.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.185e-06/5.362, allocations: 0 / 3.069 GB, free: 143.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/5.363, allocations: 0.9002 MB / 3.07 GB, free: 142.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005358/5.364, allocations: 331.3 kB / 3.071 GB, free: 142.1 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/5.364, allocations: 23.98 kB / 3.071 GB, free: 142.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006367/5.364, allocations: 67.95 kB / 3.071 GB, free: 142 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/5.365, allocations: 68.84 kB / 3.071 GB, free: 142 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-05/5.365, allocations: 35.98 kB / 3.071 GB, free: 141.9 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.000905/5.366, allocations: 0.6994 MB / 3.072 GB, free: 141.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.8e-07/5.366, allocations: 0 / 3.072 GB, free: 141.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001688/5.367, allocations: 0.5763 MB / 3.072 GB, free: 140.6 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 88 * 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.003214/5.371, allocations: 2.165 MB / 3.074 GB, free: 138.6 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001871/5.372, allocations: 1.05 MB / 3.075 GB, free: 137.6 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/5.372, allocations: 4.25 kB / 3.075 GB, free: 137.6 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0006628/5.373, allocations: 0.4884 MB / 3.076 GB, free: 137.1 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/5.374, allocations: 287.3 kB / 3.076 GB, free: 136.8 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/5.385, allocations: 7.689 MB / 3.084 GB, free: 128.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007629/5.386, allocations: 1.166 MB / 3.085 GB, free: 127.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001418/5.387, allocations: 411.7 kB / 3.085 GB, free: 127.2 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006575/5.388, allocations: 467.2 kB / 3.085 GB, free: 126.8 MB / 1.167 GB Notification: Performance of SimCode: time 1.412e-06/5.388, allocations: 0 / 3.085 GB, free: 126.8 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04904/5.437, allocations: 24.46 MB / 3.109 GB, free: 102.7 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/5.437, allocations: 269.1 kB / 3.11 GB, free: 102.3 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.217/8.654, allocations: 0 / 3.11 GB, free: 102.3 MB / 1.167 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat