Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_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.464/2.464, allocations: 390.5 MB / 398 MB, free: 10.91 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.001617/0.001617, allocations: 176.9 kB / 491.2 MB, free: 1.562 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.588/1.588, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.001073/0.001073, allocations: 91.94 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.433e-05, allocations: 0 / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2802, allocations: 143 MB / 1.212 GB, free: 39.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.536/4.817, allocations: 1.762 GB / 2.974 GB, free: 77.46 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004408/4.817, allocations: 115 kB / 2.975 GB, free: 77.39 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1725/4.99, allocations: 64.32 MB / 3.037 GB, free: 16.63 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.525e-06/4.99, allocations: 0 / 3.037 GB, free: 16.63 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001642/4.99, allocations: 35.94 kB / 3.037 GB, free: 16.6 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.003574/4.994, allocations: 1.408 MB / 3.039 GB, free: 15.13 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/4.994, allocations: 12.03 kB / 3.039 GB, free: 15.12 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001972/4.996, allocations: 297.8 kB / 3.039 GB, free: 14.83 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/4.998, allocations: 0.8417 MB / 3.04 GB, free: 13.94 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.869e-05/4.998, allocations: 40 kB / 3.04 GB, free: 13.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002426/4.998, allocations: 60 kB / 3.04 GB, free: 13.84 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002096/5, allocations: 1.288 MB / 3.041 GB, free: 12.55 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/5.002, allocations: 1.124 MB / 3.042 GB, free: 11.34 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.248e-05/5.002, allocations: 0 / 3.042 GB, free: 11.34 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/5.002, allocations: 11.89 kB / 3.042 GB, free: 11.33 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-05/5.002, allocations: 65.92 kB / 3.042 GB, free: 11.27 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005713/5.008, allocations: 4.539 MB / 3.047 GB, free: 6.488 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001242/5.009, allocations: 0.9149 MB / 3.048 GB, free: 5.551 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/5.01, allocations: 387.8 kB / 3.048 GB, free: 5.168 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001982/5.01, allocations: 125.9 kB / 3.048 GB, free: 5.027 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007077/5.011, allocations: 0.5169 MB / 3.049 GB, free: 4.488 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.585e-06/5.011, allocations: 0 / 3.049 GB, free: 4.488 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002593/5.013, allocations: 1.372 MB / 3.05 GB, free: 3.098 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.095e-05/5.013, allocations: 295.5 kB / 3.05 GB, free: 2.742 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001083/5.014, allocations: 0.7781 MB / 3.051 GB, free: 1.961 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.191e-05/5.015, allocations: 29.7 kB / 3.051 GB, free: 1.926 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003764/5.015, allocations: 0.5466 MB / 3.052 GB, free: 1.371 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002149/5.015, allocations: 303.4 kB / 3.052 GB, free: 1.07 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.267e-05/5.015, allocations: 0 / 3.052 GB, free: 1.07 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.59e-05/5.015, allocations: 349.9 kB / 3.052 GB, free: 0.7227 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003981/5.016, allocations: 310.5 kB / 3.053 GB, free: 432 kB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.7618/5.778, allocations: 499.8 kB / 3.053 GB, free: 388.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001446/5.779, allocations: 423.4 kB / 3.053 GB, free: 388.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/5.779, allocations: 1.188 kB / 3.053 GB, free: 388.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002711/5.782, allocations: 1.047 MB / 3.054 GB, free: 388.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002795/5.782, allocations: 1.142 MB / 3.056 GB, free: 387.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/5.782, allocations: 2.75 kB / 3.056 GB, free: 387.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007154/5.783, allocations: 127.6 kB / 3.056 GB, free: 387.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009337/5.784, allocations: 204.1 kB / 3.056 GB, free: 387.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005883/5.784, allocations: 0.6444 MB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009424/5.785, allocations: 91.56 kB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/5.785, allocations: 40.11 kB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/5.785, allocations: 3 kB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001587/5.787, allocations: 0.7798 MB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/5.787, allocations: 3 kB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/5.787, allocations: 10.59 kB / 3.057 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000858/5.788, allocations: 209.1 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/5.788, allocations: 12.39 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007886/5.789, allocations: 82.08 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/5.789, allocations: 39.25 kB / 3.058 GB, free: 386.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (107): * Single equations (assignments): 106 * 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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002536/5.789, allocations: 125.4 kB / 3.058 GB, free: 386.5 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002364/5.791, allocations: 1.028 MB / 3.059 GB, free: 386.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002009/5.792, allocations: 111.5 kB / 3.059 GB, free: 386.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003132/5.795, allocations: 1.307 MB / 3.06 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/5.795, allocations: 11.75 kB / 3.06 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/5.795, allocations: 8.109 kB / 3.06 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/5.795, allocations: 8.484 kB / 3.06 GB, free: 386.3 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004872/5.8, allocations: 2.495 MB / 3.063 GB, free: 385.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/5.8, allocations: 1.594 kB / 3.063 GB, free: 385.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008182/5.801, allocations: 193.9 kB / 3.063 GB, free: 385.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008636/5.802, allocations: 207.6 kB / 3.063 GB, free: 385.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.976e-05/5.802, allocations: 18.62 kB / 3.063 GB, free: 385.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001928/5.804, allocations: 1.759 MB / 3.065 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/5.804, allocations: 1.25 kB / 3.065 GB, free: 384.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/5.806, allocations: 1.421 MB / 3.066 GB, free: 384.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006393/5.807, allocations: 355.5 kB / 3.067 GB, free: 384 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001439/5.807, allocations: 8.75 kB / 3.067 GB, free: 384 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/5.808, allocations: 74.56 kB / 3.067 GB, free: 384 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/5.808, allocations: 79.3 kB / 3.067 GB, free: 384 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.332e-05/5.808, allocations: 38.02 kB / 3.067 GB, free: 384 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0009947/5.809, allocations: 0.6169 MB / 3.067 GB, free: 383.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.5e-07/5.809, allocations: 0 / 3.067 GB, free: 383.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001931/5.811, allocations: 478.3 kB / 3.068 GB, free: 383.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.004183/5.815, allocations: 2.972 MB / 3.071 GB, free: 382.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002614/5.818, allocations: 1.311 MB / 3.072 GB, free: 382.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/5.818, allocations: 4.75 kB / 3.072 GB, free: 382.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001065/5.819, allocations: 0.5957 MB / 3.073 GB, free: 382.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001565/5.82, allocations: 273.5 kB / 3.073 GB, free: 382.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004779/5.825, allocations: 2.033 MB / 3.075 GB, free: 381.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/5.826, allocations: 1.218 MB / 3.076 GB, free: 381 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002114/5.828, allocations: 0.5996 MB / 3.077 GB, free: 380.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006887/5.829, allocations: 482.4 kB / 3.077 GB, free: 380.9 MB / 1.151 GB Notification: Performance of SimCode: time 1.403e-06/5.829, allocations: 0 / 3.077 GB, free: 380.9 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07294/5.902, allocations: 26.5 MB / 3.103 GB, free: 379.4 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/5.902, allocations: 185 kB / 3.103 GB, free: 379.2 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.161/9.063, allocations: 0 / 3.103 GB, free: 379.2 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat