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/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.21/2.21, allocations: 390.3 MB / 405.3 MB, free: 13.52 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.001122/0.001122, allocations: 177.1 kB / 498.1 MB, free: 5.742 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.572/1.572, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.001007/0.001007, allocations: 100.2 kB / 0.9346 GB, free: 6.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003908, allocations: 7 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3156, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.121/4.437, allocations: 1.761 GB / 2.984 GB, free: 225.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003064/4.437, allocations: 99.14 kB / 2.984 GB, free: 225.1 MB / 1.167 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.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.1186/4.556, allocations: 56.77 MB / 3.039 GB, free: 177.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 2.165e-06/4.556, allocations: 0 / 3.039 GB, free: 177.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 8.491e-05/4.556, allocations: 35.94 kB / 3.039 GB, free: 177 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.002198/4.558, allocations: 1.485 MB / 3.041 GB, free: 175.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/4.558, allocations: 12.03 kB / 3.041 GB, free: 175.6 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001789/4.558, allocations: 158.1 kB / 3.041 GB, free: 175.5 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001258/4.559, allocations: 285.9 kB / 3.041 GB, free: 175.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/4.561, allocations: 0.8041 MB / 3.042 GB, free: 174.5 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/4.561, allocations: 74.62 kB / 3.042 GB, free: 174.4 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/4.561, allocations: 96.69 kB / 3.042 GB, free: 174.4 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/4.562, allocations: 1.159 MB / 3.043 GB, free: 173.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.302e-05/4.562, allocations: 4 kB / 3.043 GB, free: 173.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.931e-05/4.562, allocations: 43.62 kB / 3.043 GB, free: 173.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.683e-05/4.563, allocations: 53.67 kB / 3.043 GB, free: 173.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/4.564, allocations: 1.302 MB / 3.045 GB, free: 172.4 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004622/4.569, allocations: 4.395 MB / 3.049 GB, free: 168.6 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001283/4.57, allocations: 0.8135 MB / 3.05 GB, free: 168.1 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 6.096e-05/4.57, allocations: 32.23 kB / 3.05 GB, free: 168.1 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006057/4.571, allocations: 473.2 kB / 3.05 GB, free: 167.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=80): time 2.504e-06/4.571, allocations: 0 / 3.05 GB, free: 167.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=80): time 0.001724/4.573, allocations: 1.086 MB / 3.051 GB, free: 166.8 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.918e-05/4.573, allocations: 350.8 kB / 3.051 GB, free: 166.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009939/4.574, allocations: 0.8848 MB / 3.052 GB, free: 165.7 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.904e-05/4.574, allocations: 43.2 kB / 3.052 GB, free: 165.7 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003209/4.574, allocations: 0.5256 MB / 3.053 GB, free: 165.4 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/4.574, allocations: 270.9 kB / 3.053 GB, free: 165.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/4.574, allocations: 19.75 kB / 3.053 GB, free: 165.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.907e-05/4.574, allocations: 336 kB / 3.054 GB, free: 164.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/4.575, allocations: 252.1 kB / 3.054 GB, free: 164.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/4.575, allocations: 440.4 kB / 3.054 GB, free: 164.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004916/4.576, allocations: 320.8 kB / 3.054 GB, free: 164 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/4.576, allocations: 0 / 3.054 GB, free: 164 MB / 1.167 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001213/4.577, allocations: 0.8276 MB / 3.055 GB, free: 163.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000178/4.577, allocations: 0.9675 MB / 3.056 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/4.577, allocations: 4 kB / 3.056 GB, free: 162.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/4.577, allocations: 31.47 kB / 3.056 GB, free: 162.3 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/4.578, allocations: 173.3 kB / 3.056 GB, free: 162.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002395/4.578, allocations: 0.5342 MB / 3.057 GB, free: 161.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000641/4.579, allocations: 107.1 kB / 3.057 GB, free: 161.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/4.579, allocations: 39.25 kB / 3.057 GB, free: 161.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/4.579, allocations: 4 kB / 3.057 GB, free: 161.5 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00102/4.58, allocations: 0.6939 MB / 3.058 GB, free: 161 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/4.58, allocations: 7.984 kB / 3.058 GB, free: 161 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.73e-06/4.58, allocations: 4 kB / 3.058 GB, free: 161 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006189/4.581, allocations: 175.2 kB / 3.058 GB, free: 160.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/4.581, allocations: 8.312 kB / 3.058 GB, free: 160.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005884/4.581, allocations: 106.9 kB / 3.058 GB, free: 160.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.378e-05/4.581, allocations: 28.86 kB / 3.058 GB, free: 160.7 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.0004736/4.582, allocations: 411.6 kB / 3.058 GB, free: 160.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/4.582, allocations: 110.6 kB / 3.059 GB, free: 160.3 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001636/4.584, allocations: 0.9832 MB / 3.06 GB, free: 159.6 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/4.584, allocations: 8 kB / 3.06 GB, free: 159.6 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/4.584, allocations: 4 kB / 3.06 GB, free: 159.6 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/4.584, allocations: 3.984 kB / 3.06 GB, free: 159.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/4.585, allocations: 1.36 MB / 3.061 GB, free: 158.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/4.585, allocations: 0 / 3.061 GB, free: 158.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005764/4.586, allocations: 155.7 kB / 3.061 GB, free: 158.3 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.624e-05/4.586, allocations: 32.84 kB / 3.061 GB, free: 158.2 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.524e-05/4.586, allocations: 23.98 kB / 3.061 GB, free: 158.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006237/4.586, allocations: 1.288 MB / 3.062 GB, free: 156.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/4.586, allocations: 0 / 3.062 GB, free: 156.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/4.588, allocations: 0.9042 MB / 3.063 GB, free: 155.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004419/4.588, allocations: 335.3 kB / 3.064 GB, free: 155.5 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000118/4.588, allocations: 24 kB / 3.064 GB, free: 155.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000565/4.589, allocations: 67.95 kB / 3.064 GB, free: 155.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/4.589, allocations: 60.91 kB / 3.064 GB, free: 155.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.727e-05/4.589, allocations: 31.98 kB / 3.064 GB, free: 155.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0008433/4.59, allocations: 0.7033 MB / 3.064 GB, free: 154.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.3e-07/4.59, allocations: 0 / 3.064 GB, free: 154.6 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001497/4.591, allocations: 0.5763 MB / 3.065 GB, free: 154 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.002928/4.594, allocations: 2.169 MB / 3.067 GB, free: 152 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.00163/4.596, allocations: 1.058 MB / 3.068 GB, free: 151 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/4.596, allocations: 0 / 3.068 GB, free: 151 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005743/4.597, allocations: 492.2 kB / 3.069 GB, free: 150.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/4.598, allocations: 298.4 kB / 3.069 GB, free: 150.2 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007567/4.605, allocations: 7.696 MB / 3.076 GB, free: 142.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/4.606, allocations: 1.17 MB / 3.078 GB, free: 141 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.001089/4.607, allocations: 403.7 kB / 3.078 GB, free: 140.6 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000498/4.607, allocations: 471.2 kB / 3.078 GB, free: 140.2 MB / 1.167 GB Notification: Performance of SimCode: time 5.71e-07/4.607, allocations: 0 / 3.078 GB, free: 140.2 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/4.648, allocations: 24.45 MB / 3.102 GB, free: 116.1 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/4.648, allocations: 256.2 kB / 3.102 GB, free: 115.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.756/7.405, allocations: 0 / 3.102 GB, free: 115.7 MB / 1.167 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