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.369/2.369, allocations: 390.5 MB / 398 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.001296/0.001297, allocations: 173 kB / 491.2 MB, free: 1.594 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.743/1.743, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001403/0.001404, allocations: 87.95 kB / 0.9269 GB, free: 13.78 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.957e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3184, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.798/5.116, allocations: 1.761 GB / 2.973 GB, free: 103.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/5.117, allocations: 99.94 kB / 2.973 GB, free: 103.1 MB / 1.151 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.24, allocations: 55.92 MB / 3.028 GB, free: 46.84 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.094e-06/5.24, allocations: 4 kB / 3.028 GB, free: 46.83 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.682e-05/5.24, allocations: 28 kB / 3.028 GB, free: 46.8 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.00217/5.242, allocations: 1.337 MB / 3.029 GB, free: 45.41 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/5.242, allocations: 8.031 kB / 3.029 GB, free: 45.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/5.244, allocations: 278.3 kB / 3.029 GB, free: 45.13 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/5.245, allocations: 0.7989 MB / 3.03 GB, free: 44.29 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/5.245, allocations: 32 kB / 3.03 GB, free: 44.26 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.943e-05/5.245, allocations: 56 kB / 3.03 GB, free: 44.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001448/5.246, allocations: 1.175 MB / 3.031 GB, free: 43.02 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/5.248, allocations: 0.9863 MB / 3.032 GB, free: 41.97 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/5.248, allocations: 0 / 3.032 GB, free: 41.97 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.02e-05/5.248, allocations: 4 kB / 3.032 GB, free: 41.96 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.944e-05/5.248, allocations: 53.94 kB / 3.033 GB, free: 41.91 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005028/5.253, allocations: 4.187 MB / 3.037 GB, free: 37.52 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/5.254, allocations: 0.7278 MB / 3.037 GB, free: 36.78 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004589/5.255, allocations: 299.9 kB / 3.038 GB, free: 36.48 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 7.943e-05/5.255, allocations: 28.83 kB / 3.038 GB, free: 36.46 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005315/5.255, allocations: 422.4 kB / 3.038 GB, free: 36.02 MB / 1.151 GB Notification: Performance of pre-optimization done (n=80): time 2.365e-06/5.255, allocations: 4 kB / 3.038 GB, free: 36.01 MB / 1.151 GB Notification: Performance of matching and sorting (n=80): time 0.001115/5.256, allocations: 0.6598 MB / 3.039 GB, free: 35.34 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.177e-05/5.256, allocations: 362.9 kB / 3.039 GB, free: 34.91 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008305/5.257, allocations: 0.7623 MB / 3.04 GB, free: 34.14 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.688e-05/5.257, allocations: 29.7 kB / 3.04 GB, free: 34.11 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003033/5.258, allocations: 0.5269 MB / 3.04 GB, free: 33.57 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.000142/5.258, allocations: 260.2 kB / 3.041 GB, free: 33.31 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/5.258, allocations: 0 / 3.041 GB, free: 33.31 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.132e-05/5.258, allocations: 334 kB / 3.041 GB, free: 32.98 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002965/5.258, allocations: 205.5 kB / 3.041 GB, free: 32.78 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003676/5.259, allocations: 406.2 kB / 3.041 GB, free: 32.31 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003601/5.259, allocations: 276.4 kB / 3.042 GB, free: 32.04 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/5.259, allocations: 0 / 3.042 GB, free: 32.04 MB / 1.151 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001163/5.26, allocations: 0.7067 MB / 3.042 GB, free: 31.33 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002189/5.26, allocations: 0.9765 MB / 3.043 GB, free: 30.28 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/5.26, allocations: 4 kB / 3.043 GB, free: 30.27 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001936/5.261, allocations: 20.84 kB / 3.043 GB, free: 30.25 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007621/5.261, allocations: 167.8 kB / 3.044 GB, free: 30.09 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002985/5.262, allocations: 0.5445 MB / 3.044 GB, free: 29.52 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000769/5.262, allocations: 79.33 kB / 3.044 GB, free: 29.44 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-05/5.263, allocations: 35.98 kB / 3.044 GB, free: 29.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/5.263, allocations: 4 kB / 3.044 GB, free: 29.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009757/5.264, allocations: 0.5688 MB / 3.045 GB, free: 28.83 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/5.264, allocations: 3.953 kB / 3.045 GB, free: 28.83 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/5.264, allocations: 12 kB / 3.045 GB, free: 28.82 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007466/5.264, allocations: 175.7 kB / 3.045 GB, free: 28.64 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/5.264, allocations: 4 kB / 3.045 GB, free: 28.64 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006531/5.265, allocations: 71.72 kB / 3.045 GB, free: 28.57 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.95e-05/5.265, allocations: 39.92 kB / 3.045 GB, free: 28.53 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.0002076/5.265, allocations: 128.7 kB / 3.045 GB, free: 28.4 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00115/5.266, allocations: 0.6639 MB / 3.046 GB, free: 27.72 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/5.267, allocations: 102.8 kB / 3.046 GB, free: 27.62 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/5.268, allocations: 0.8707 MB / 3.047 GB, free: 26.74 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/5.268, allocations: 12 kB / 3.047 GB, free: 26.73 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/5.268, allocations: 0 / 3.047 GB, free: 26.73 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/5.268, allocations: 3.984 kB / 3.047 GB, free: 26.72 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002516/5.271, allocations: 2.099 MB / 3.049 GB, free: 24.55 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/5.271, allocations: 4 kB / 3.049 GB, free: 24.54 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005545/5.271, allocations: 155.8 kB / 3.049 GB, free: 24.39 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/5.271, allocations: 28.84 kB / 3.049 GB, free: 24.36 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/5.271, allocations: 19.94 kB / 3.049 GB, free: 24.34 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006557/5.272, allocations: 1.217 MB / 3.05 GB, free: 23.01 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/5.272, allocations: 0 / 3.05 GB, free: 23.01 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/5.273, allocations: 0.9053 MB / 3.051 GB, free: 22.04 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/5.274, allocations: 327.4 kB / 3.051 GB, free: 21.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001218/5.274, allocations: 7.984 kB / 3.051 GB, free: 21.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000587/5.274, allocations: 51.95 kB / 3.051 GB, free: 21.64 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/5.274, allocations: 68.64 kB / 3.052 GB, free: 21.58 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-05/5.274, allocations: 35.98 kB / 3.052 GB, free: 21.54 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0006449/5.275, allocations: 0.6006 MB / 3.052 GB, free: 20.95 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.1e-07/5.275, allocations: 0 / 3.052 GB, free: 20.95 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001435/5.277, allocations: 0.537 MB / 3.053 GB, free: 20.41 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.002452/5.279, allocations: 2.213 MB / 3.055 GB, free: 18.27 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001541/5.281, allocations: 0.9507 MB / 3.056 GB, free: 17.32 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/5.281, allocations: 4.312 kB / 3.056 GB, free: 17.31 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005176/5.281, allocations: 444.5 kB / 3.056 GB, free: 16.87 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/5.282, allocations: 278.5 kB / 3.056 GB, free: 16.6 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/5.286, allocations: 1.78 MB / 3.058 GB, free: 14.77 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005416/5.286, allocations: 1.174 MB / 3.059 GB, free: 13.56 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001587/5.288, allocations: 0.5615 MB / 3.06 GB, free: 12.99 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004678/5.288, allocations: 447.3 kB / 3.06 GB, free: 12.55 MB / 1.151 GB Notification: Performance of SimCode: time 9.22e-07/5.288, allocations: 4 kB / 3.06 GB, free: 12.55 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6906/5.979, allocations: 23.68 MB / 3.083 GB, free: 388.8 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001682/5.979, allocations: 184.5 kB / 3.084 GB, free: 388.6 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.97/8.949, allocations: 4 kB / 3.084 GB, free: 388.6 MB / 1.151 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