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.227/2.227, allocations: 387.1 MB / 399.7 MB, free: 9.473 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.001129/0.001129, allocations: 180.1 kB / 492.3 MB, free: 0.6055 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.407/1.407, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0009118/0.0009118, allocations: 99.88 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.774e-05, allocations: 4 kB / 1.073 GB, free: 180.2 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.225, allocations: 142.3 MB / 1.212 GB, free: 38.39 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.211/4.437, allocations: 1.761 GB / 2.973 GB, free: 79.18 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/4.437, allocations: 98.56 kB / 2.973 GB, free: 79.12 MB / 1.151 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.1443/4.581, allocations: 56.33 MB / 3.028 GB, free: 26.19 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.565e-06/4.581, allocations: 3.938 kB / 3.028 GB, free: 26.19 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001734/4.581, allocations: 35.92 kB / 3.028 GB, free: 26.15 MB / 1.151 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.003899/4.585, allocations: 1.34 MB / 3.03 GB, free: 24.76 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/4.585, allocations: 8.031 kB / 3.03 GB, free: 24.75 MB / 1.151 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003826/4.586, allocations: 157.1 kB / 3.03 GB, free: 24.59 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001673/4.588, allocations: 281.9 kB / 3.03 GB, free: 24.31 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001751/4.589, allocations: 0.7989 MB / 3.031 GB, free: 23.47 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/4.589, allocations: 74 kB / 3.031 GB, free: 23.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/4.59, allocations: 99.98 kB / 3.031 GB, free: 23.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/4.591, allocations: 1.119 MB / 3.032 GB, free: 22.11 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.358e-05/4.591, allocations: 0 / 3.032 GB, free: 22.11 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/4.592, allocations: 51.98 kB / 3.032 GB, free: 22.06 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.549e-05/4.592, allocations: 49.98 kB / 3.032 GB, free: 22.01 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001758/4.593, allocations: 1.241 MB / 3.033 GB, free: 20.77 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005696/4.599, allocations: 4.389 MB / 3.038 GB, free: 16.16 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/4.6, allocations: 0.769 MB / 3.038 GB, free: 15.39 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004852/4.601, allocations: 315.1 kB / 3.039 GB, free: 15.08 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 7.629e-05/4.601, allocations: 44.73 kB / 3.039 GB, free: 15.03 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006024/4.602, allocations: 447.9 kB / 3.039 GB, free: 14.56 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 3.386e-06/4.602, allocations: 3.938 kB / 3.039 GB, free: 14.56 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001263/4.603, allocations: 0.7028 MB / 3.04 GB, free: 13.85 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/4.603, allocations: 350.9 kB / 3.04 GB, free: 13.43 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001208/4.604, allocations: 0.8845 MB / 3.041 GB, free: 12.52 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.285e-05/4.604, allocations: 41.7 kB / 3.041 GB, free: 12.47 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/4.605, allocations: 0.5271 MB / 3.042 GB, free: 11.93 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/4.605, allocations: 264.2 kB / 3.042 GB, free: 11.67 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.948e-05/4.605, allocations: 16 kB / 3.042 GB, free: 11.66 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.514e-05/4.605, allocations: 334 kB / 3.042 GB, free: 11.32 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/4.605, allocations: 221.5 kB / 3.042 GB, free: 11.11 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/4.606, allocations: 419 kB / 3.043 GB, free: 10.63 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004286/4.606, allocations: 290 kB / 3.043 GB, free: 10.35 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/4.606, allocations: 0 / 3.043 GB, free: 10.35 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001203/4.607, allocations: 0.7733 MB / 3.044 GB, free: 9.566 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001827/4.608, allocations: 0.9707 MB / 3.045 GB, free: 8.52 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/4.608, allocations: 0 / 3.045 GB, free: 8.52 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001811/4.608, allocations: 32.84 kB / 3.045 GB, free: 8.484 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006409/4.608, allocations: 171.7 kB / 3.045 GB, free: 8.316 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002719/4.609, allocations: 0.5406 MB / 3.046 GB, free: 7.75 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007783/4.609, allocations: 99.19 kB / 3.046 GB, free: 7.652 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.7e-05/4.61, allocations: 44.02 kB / 3.046 GB, free: 7.609 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/4.61, allocations: 7.953 kB / 3.046 GB, free: 7.602 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009159/4.61, allocations: 0.6389 MB / 3.046 GB, free: 6.961 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/4.611, allocations: 4 kB / 3.046 GB, free: 6.957 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.216e-06/4.611, allocations: 4 kB / 3.046 GB, free: 6.953 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/4.611, allocations: 172.1 kB / 3.046 GB, free: 6.785 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/4.611, allocations: 15.92 kB / 3.046 GB, free: 6.77 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000668/4.612, allocations: 91.25 kB / 3.047 GB, free: 6.68 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/4.612, allocations: 35.98 kB / 3.047 GB, free: 6.645 MB / 1.151 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 () * 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.0001781/4.612, allocations: 155.1 kB / 3.047 GB, free: 6.488 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/4.612, allocations: 114.6 kB / 3.047 GB, free: 6.375 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/4.614, allocations: 0.9453 MB / 3.048 GB, free: 5.414 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/4.614, allocations: 8 kB / 3.048 GB, free: 5.406 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/4.614, allocations: 7.938 kB / 3.048 GB, free: 5.398 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/4.614, allocations: 3.984 kB / 3.048 GB, free: 5.395 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002828/4.617, allocations: 2.298 MB / 3.05 GB, free: 3.012 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/4.617, allocations: 0 / 3.05 GB, free: 3.012 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005985/4.617, allocations: 167.7 kB / 3.05 GB, free: 2.848 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.858e-05/4.617, allocations: 20.84 kB / 3.05 GB, free: 2.824 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.583e-05/4.618, allocations: 27.98 kB / 3.05 GB, free: 2.797 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006578/4.618, allocations: 1.268 MB / 3.051 GB, free: 1.391 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/4.618, allocations: 3.953 kB / 3.051 GB, free: 1.387 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001155/4.619, allocations: 0.9656 MB / 3.052 GB, free: 376 kB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004268/4.62, allocations: 319.4 kB / 3.053 GB, free: 36 kB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/4.62, allocations: 20 kB / 3.053 GB, free: 16 kB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.6836/5.304, allocations: 68.05 kB / 3.053 GB, free: 391.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/5.304, allocations: 63.22 kB / 3.053 GB, free: 391.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/5.304, allocations: 34.03 kB / 3.053 GB, free: 391.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.001446/5.305, allocations: 0.6937 MB / 3.054 GB, free: 391.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.8e-07/5.305, allocations: 0 / 3.054 GB, free: 391.4 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001931/5.307, allocations: 0.5703 MB / 3.054 GB, free: 391.4 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * 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.003186/5.311, allocations: 2.317 MB / 3.056 GB, free: 390.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002061/5.313, allocations: 1.012 MB / 3.057 GB, free: 390.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/5.313, allocations: 1.094 kB / 3.057 GB, free: 390.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0009893/5.314, allocations: 472.1 kB / 3.058 GB, free: 390.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/5.315, allocations: 297.3 kB / 3.058 GB, free: 390.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005809/5.321, allocations: 1.872 MB / 3.06 GB, free: 389.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001203/5.323, allocations: 1.171 MB / 3.061 GB, free: 389 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002313/5.325, allocations: 0.5537 MB / 3.062 GB, free: 389 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006914/5.326, allocations: 446.8 kB / 3.062 GB, free: 389 MB / 1.151 GB Notification: Performance of SimCode: time 1.633e-06/5.326, allocations: 0 / 3.062 GB, free: 389 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0665/5.392, allocations: 25.8 MB / 3.087 GB, free: 387.6 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001333/5.392, allocations: 227.1 kB / 3.087 GB, free: 387.4 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.827/8.219, allocations: 0 / 3.087 GB, free: 387.4 MB / 1.151 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