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.323/2.323, allocations: 390.3 MB / 402.8 MB, free: 6.68 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.00134/0.00134, allocations: 180.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.68/1.68, allocations: 221.3 MB / 0.7915 GB, free: 5.469 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.001006/0.001006, allocations: 95.91 kB / 0.9317 GB, free: 5.777 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.933e-05/3.937e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3088, allocations: 143 MB / 1.219 GB, free: 13.45 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.757/5.066, allocations: 1.761 GB / 2.98 GB, free: 73.42 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/5.067, allocations: 95.95 kB / 2.98 GB, free: 73.32 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.1234/5.19, allocations: 56.34 MB / 3.035 GB, free: 16.66 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.292e-06/5.19, allocations: 4 kB / 3.035 GB, free: 16.66 MB / 1.167 GB Notification: Performance of Transformations before backend: time 9.073e-05/5.19, allocations: 31.94 kB / 3.035 GB, free: 16.62 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.002069/5.192, allocations: 1.337 MB / 3.037 GB, free: 15.23 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/5.192, allocations: 8.031 kB / 3.037 GB, free: 15.23 MB / 1.167 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001672/5.192, allocations: 152.8 kB / 3.037 GB, free: 15.07 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/5.194, allocations: 282 kB / 3.037 GB, free: 14.79 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/5.195, allocations: 0.8027 MB / 3.038 GB, free: 13.95 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.758e-05/5.195, allocations: 74 kB / 3.038 GB, free: 13.88 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/5.195, allocations: 96 kB / 3.038 GB, free: 13.78 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001523/5.197, allocations: 1.119 MB / 3.039 GB, free: 12.59 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/5.197, allocations: 4 kB / 3.039 GB, free: 12.59 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.813e-05/5.197, allocations: 47.98 kB / 3.039 GB, free: 12.54 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.183e-05/5.197, allocations: 50 kB / 3.039 GB, free: 12.49 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/5.198, allocations: 1.249 MB / 3.04 GB, free: 11.24 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004968/5.203, allocations: 4.402 MB / 3.045 GB, free: 6.617 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/5.205, allocations: 0.7651 MB / 3.046 GB, free: 5.84 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/5.205, allocations: 319.2 kB / 3.046 GB, free: 5.523 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 7.184e-05/5.205, allocations: 40.72 kB / 3.046 GB, free: 5.484 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005566/5.206, allocations: 455.8 kB / 3.046 GB, free: 5.012 MB / 1.167 GB Notification: Performance of pre-optimization done (n=80): time 2.314e-06/5.206, allocations: 0 / 3.046 GB, free: 5.012 MB / 1.167 GB Notification: Performance of matching and sorting (n=80): time 0.001157/5.207, allocations: 0.7028 MB / 3.047 GB, free: 4.297 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/5.207, allocations: 347 kB / 3.047 GB, free: 3.879 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009661/5.208, allocations: 0.8806 MB / 3.048 GB, free: 2.973 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 5.796e-05/5.208, allocations: 45.7 kB / 3.048 GB, free: 2.922 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002891/5.208, allocations: 0.527 MB / 3.049 GB, free: 2.387 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/5.208, allocations: 264.2 kB / 3.049 GB, free: 2.125 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/5.208, allocations: 12 kB / 3.049 GB, free: 2.113 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.941e-05/5.209, allocations: 334 kB / 3.049 GB, free: 1.781 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/5.209, allocations: 221.5 kB / 3.05 GB, free: 1.566 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000431/5.209, allocations: 423 kB / 3.05 GB, free: 1.086 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003872/5.21, allocations: 290 kB / 3.05 GB, free: 0.8047 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/5.21, allocations: 0 / 3.05 GB, free: 0.8047 MB / 1.167 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001051/5.211, allocations: 0.7772 MB / 3.051 GB, free: 16 kB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.8166/6.027, allocations: 0.9595 MB / 3.052 GB, free: 399.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/6.027, allocations: 6.078 kB / 3.052 GB, free: 399.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003242/6.028, allocations: 28.86 kB / 3.052 GB, free: 399.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/6.029, allocations: 168.8 kB / 3.052 GB, free: 399.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003667/6.029, allocations: 0.5414 MB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009956/6.03, allocations: 106 kB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.39e-05/6.03, allocations: 31.23 kB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/6.03, allocations: 3.656 kB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001483/6.032, allocations: 0.6383 MB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/6.032, allocations: 2.906 kB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/6.032, allocations: 9.906 kB / 3.053 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007473/6.033, allocations: 173 kB / 3.054 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.32e-05/6.033, allocations: 12.86 kB / 3.054 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007529/6.033, allocations: 102.8 kB / 3.054 GB, free: 398.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.807e-05/6.033, allocations: 34.69 kB / 3.054 GB, free: 398.9 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 () * 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.000268/6.034, allocations: 154 kB / 3.054 GB, free: 398.8 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000235/6.034, allocations: 109 kB / 3.054 GB, free: 398.8 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002216/6.036, allocations: 0.9448 MB / 3.055 GB, free: 398.7 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/6.036, allocations: 12.91 kB / 3.055 GB, free: 398.7 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.724e-06/6.036, allocations: 6.406 kB / 3.055 GB, free: 398.7 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.477e-05/6.036, allocations: 5.141 kB / 3.055 GB, free: 398.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003999/6.04, allocations: 2.292 MB / 3.057 GB, free: 398.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/6.04, allocations: 1.594 kB / 3.057 GB, free: 398.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006831/6.041, allocations: 156.7 kB / 3.057 GB, free: 398.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/6.041, allocations: 26.98 kB / 3.057 GB, free: 398.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.3e-05/6.041, allocations: 23.36 kB / 3.057 GB, free: 398.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008397/6.042, allocations: 1.276 MB / 3.059 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/6.042, allocations: 1.031 kB / 3.059 GB, free: 396.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/6.044, allocations: 0.9654 MB / 3.06 GB, free: 396.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005412/6.044, allocations: 330.4 kB / 3.06 GB, free: 396.3 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/6.044, allocations: 19.92 kB / 3.06 GB, free: 396.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006352/6.045, allocations: 71.78 kB / 3.06 GB, free: 396.3 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/6.045, allocations: 66.61 kB / 3.06 GB, free: 396.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/6.045, allocations: 32.84 kB / 3.06 GB, free: 396.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.001189/6.046, allocations: 0.6967 MB / 3.061 GB, free: 396.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 2.01e-07/6.046, allocations: 0 / 3.061 GB, free: 396.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001893/6.048, allocations: 0.5693 MB / 3.061 GB, free: 396.2 MB / 1.167 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.003539/6.052, allocations: 2.312 MB / 3.064 GB, free: 395.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.002716/6.055, allocations: 1.008 MB / 3.065 GB, free: 395 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/6.055, allocations: 0.8438 kB / 3.065 GB, free: 395 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0009118/6.056, allocations: 475.9 kB / 3.065 GB, free: 394.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00163/6.057, allocations: 288.9 kB / 3.065 GB, free: 394.9 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006014/6.063, allocations: 1.868 MB / 3.067 GB, free: 394.4 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00147/6.065, allocations: 1.166 MB / 3.068 GB, free: 393.7 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.002531/6.067, allocations: 0.5509 MB / 3.069 GB, free: 393.7 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008247/6.068, allocations: 447.8 kB / 3.069 GB, free: 393.7 MB / 1.167 GB Notification: Performance of SimCode: time 2.474e-06/6.068, allocations: 0 / 3.069 GB, free: 393.7 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08139/6.15, allocations: 25.81 MB / 3.094 GB, free: 392.2 MB / 1.167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002384/6.15, allocations: 224.9 kB / 3.095 GB, free: 391.9 MB / 1.167 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.097/9.247, allocations: 0 / 3.095 GB, free: 391.9 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