Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.568/2.568, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.0009945/0.0009944, allocations: 176.8 kB / 487.4 MB, free: 5.023 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.488/1.488, allocations: 221.5 MB / 0.7824 GB, free: 0.9531 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001113, allocations: 105.7 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.015e-05/2.018e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3089, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.407/4.716, allocations: 1.765 GB / 2.971 GB, free: 103.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/4.716, allocations: 109.8 kB / 2.971 GB, free: 103.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1503/4.866, allocations: 68.27 MB / 3.038 GB, free: 39.54 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.212e-06/4.867, allocations: 0 / 3.038 GB, free: 39.54 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001033/4.867, allocations: 35.94 kB / 3.038 GB, free: 39.5 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.002429/4.869, allocations: 1.409 MB / 3.04 GB, free: 38.04 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/4.869, allocations: 8.562 kB / 3.04 GB, free: 38.03 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001466/4.871, allocations: 301.8 kB / 3.04 GB, free: 37.73 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/4.872, allocations: 0.8417 MB / 3.041 GB, free: 36.85 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.235e-05/4.872, allocations: 36 kB / 3.041 GB, free: 36.81 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/4.872, allocations: 60 kB / 3.041 GB, free: 36.75 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001618/4.874, allocations: 1.288 MB / 3.042 GB, free: 35.46 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/4.875, allocations: 1.123 MB / 3.043 GB, free: 34.25 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/4.875, allocations: 3.938 kB / 3.043 GB, free: 34.25 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.925e-05/4.875, allocations: 7.953 kB / 3.043 GB, free: 34.24 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-05/4.876, allocations: 57.97 kB / 3.043 GB, free: 34.18 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004873/4.88, allocations: 4.535 MB / 3.048 GB, free: 29.41 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/4.882, allocations: 0.9341 MB / 3.048 GB, free: 28.45 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004266/4.882, allocations: 379.9 kB / 3.049 GB, free: 28.08 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001973/4.882, allocations: 117.9 kB / 3.049 GB, free: 27.94 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000684/4.883, allocations: 0.5247 MB / 3.049 GB, free: 27.39 MB / 1.151 GB Notification: Performance of pre-optimization done (n=94): time 2.344e-06/4.883, allocations: 0 / 3.049 GB, free: 27.39 MB / 1.151 GB Notification: Performance of matching and sorting (n=95): time 0.002396/4.885, allocations: 1.368 MB / 3.051 GB, free: 26.01 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.075e-05/4.885, allocations: 295.5 kB / 3.051 GB, free: 25.66 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009828/4.886, allocations: 0.7781 MB / 3.052 GB, free: 24.87 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.932e-05/4.887, allocations: 33.8 kB / 3.052 GB, free: 24.83 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005437/4.887, allocations: 0.5465 MB / 3.052 GB, free: 24.28 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/4.887, allocations: 303.4 kB / 3.053 GB, free: 23.98 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.563e-05/4.887, allocations: 4 kB / 3.053 GB, free: 23.97 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.616e-05/4.888, allocations: 341.9 kB / 3.053 GB, free: 23.63 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/4.888, allocations: 310.5 kB / 3.053 GB, free: 23.33 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/4.888, allocations: 0.4985 MB / 3.054 GB, free: 22.76 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006438/4.889, allocations: 420.3 kB / 3.054 GB, free: 22.35 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/4.889, allocations: 4 kB / 3.054 GB, free: 22.35 MB / 1.151 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001756/4.891, allocations: 1.05 MB / 3.055 GB, free: 21.29 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002677/4.891, allocations: 1.145 MB / 3.056 GB, free: 20.05 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/4.891, allocations: 0 / 3.056 GB, free: 20.05 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/4.892, allocations: 128.7 kB / 3.057 GB, free: 19.92 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007847/4.893, allocations: 207.7 kB / 3.057 GB, free: 19.72 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004593/4.893, allocations: 0.6383 MB / 3.057 GB, free: 19.05 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007549/4.894, allocations: 91.39 kB / 3.057 GB, free: 18.96 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.904e-05/4.894, allocations: 39.97 kB / 3.057 GB, free: 18.93 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/4.894, allocations: 4 kB / 3.057 GB, free: 18.92 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001158/4.895, allocations: 0.7794 MB / 3.058 GB, free: 18.14 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/4.895, allocations: 4.375 kB / 3.058 GB, free: 18.14 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.606e-06/4.895, allocations: 12 kB / 3.058 GB, free: 18.13 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007601/4.896, allocations: 211.7 kB / 3.058 GB, free: 17.92 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/4.896, allocations: 8 kB / 3.058 GB, free: 17.91 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006493/4.896, allocations: 83.31 kB / 3.059 GB, free: 17.83 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.948e-05/4.897, allocations: 35.98 kB / 3.059 GB, free: 17.8 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.0002017/4.897, allocations: 133.5 kB / 3.059 GB, free: 17.66 MB / 1.151 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001757/4.899, allocations: 1.03 MB / 3.06 GB, free: 16.62 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000139/4.899, allocations: 106.8 kB / 3.06 GB, free: 16.52 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/4.901, allocations: 1.32 MB / 3.061 GB, free: 15.18 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.457e-05/4.901, allocations: 8 kB / 3.061 GB, free: 15.18 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/4.901, allocations: 3.938 kB / 3.061 GB, free: 15.17 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/4.901, allocations: 7.984 kB / 3.061 GB, free: 15.16 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004077/4.905, allocations: 2.5 MB / 3.064 GB, free: 12.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/4.905, allocations: 224 / 3.064 GB, free: 12.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007441/4.906, allocations: 199.8 kB / 3.064 GB, free: 12.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007806/4.907, allocations: 208.6 kB / 3.064 GB, free: 12.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.028e-05/4.907, allocations: 19.94 kB / 3.064 GB, free: 12.18 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001695/4.909, allocations: 1.756 MB / 3.066 GB, free: 10.3 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/4.909, allocations: 4 kB / 3.066 GB, free: 10.3 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/4.911, allocations: 1.412 MB / 3.067 GB, free: 8.805 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004815/4.911, allocations: 359.2 kB / 3.067 GB, free: 8.434 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/4.911, allocations: 8 kB / 3.067 GB, free: 8.426 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000722/4.912, allocations: 75.91 kB / 3.067 GB, free: 8.352 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000133/4.912, allocations: 77.16 kB / 3.068 GB, free: 8.277 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.579e-05/4.912, allocations: 43.98 kB / 3.068 GB, free: 8.234 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0007373/4.913, allocations: 0.6085 MB / 3.068 GB, free: 7.629 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.7e-07/4.913, allocations: 0 / 3.068 GB, free: 7.629 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001566/4.915, allocations: 479.8 kB / 3.069 GB, free: 7.16 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.003678/4.918, allocations: 2.96 MB / 3.072 GB, free: 4.25 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001915/4.92, allocations: 1.316 MB / 3.073 GB, free: 2.934 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/4.92, allocations: 0 / 3.073 GB, free: 2.934 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0007723/4.921, allocations: 0.6013 MB / 3.073 GB, free: 2.32 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/4.923, allocations: 285.3 kB / 3.074 GB, free: 2.051 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6094/5.532, allocations: 2.03 MB / 3.076 GB, free: 387.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/5.534, allocations: 1.216 MB / 3.077 GB, free: 387 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.002543/5.536, allocations: 0.5889 MB / 3.077 GB, free: 387 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007969/5.537, allocations: 485.1 kB / 3.078 GB, free: 387 MB / 1.151 GB Notification: Performance of SimCode: time 1.423e-06/5.537, allocations: 0 / 3.078 GB, free: 387 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07537/5.612, allocations: 26.49 MB / 3.104 GB, free: 385.8 MB / 1.151 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/5.613, allocations: 208.6 kB / 3.104 GB, free: 385.5 MB / 1.151 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.982/8.595, allocations: 1.828 kB / 3.104 GB, free: 385.5 MB / 1.151 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine_res.mat does not exist to compare? outputFormat=mat