Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009559/0.0009559, allocations: 103.6 kB / 16.51 MB, free: 6.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009603/0.0009604, allocations: 194.4 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 241.1 MB, free: 15.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1608/0.1608, allocations: 38.04 MB / 329.3 MB, free: 9.102 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 64.92 kB / 398.2 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08741/0.08855, allocations: 58.07 MB / 456.2 MB, free: 8.449 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.009584/0.09817, allocations: 9.312 MB / 465.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008634/0.1068, allocations: 6.04 MB / 471.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007633/0.1076, allocations: 47.69 kB / 471.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00899/0.1166, allocations: 5.133 MB / 476.8 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001772/0.1184, allocations: 0.7978 MB / 477.6 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.1195, allocations: 451.2 kB / 478 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003752/0.1232, allocations: 3.747 MB / 481.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008246/0.1241, allocations: 0.5791 MB / 482.3 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008584/0.125, allocations: 0.6496 MB / 483 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.1262, allocations: 1.09 MB / 484.1 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.1264, allocations: 68 kB / 484.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006768/0.1271, allocations: 343.5 kB / 484.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00052/0.1276, allocations: 0.6272 MB / 485.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005895/0.1282, allocations: 0.6413 MB / 485.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001391/0.1296, allocations: 1.67 MB / 487.4 MB, free: 9.164 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1296, allocations: 4 kB / 487.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1296, allocations: 0 / 487.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1296, allocations: 0 / 487.4 MB, free: 9.16 MB / 366.1 MB 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.003031/0.1327, allocations: 1.593 MB / 489 MB, free: 7.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.1327, allocations: 8.031 kB / 489 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001898/0.1329, allocations: 169.2 kB / 489.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001098/0.134, allocations: 207.1 kB / 489.4 MB, free: 7.125 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001663/0.1357, allocations: 0.9332 MB / 490.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.933e-05/0.1357, allocations: 69.98 kB / 490.4 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004004/0.1362, allocations: 179.8 kB / 490.6 MB, free: 5.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/0.1383, allocations: 1.566 MB / 492.1 MB, free: 4.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.204e-05/0.1384, allocations: 11.92 kB / 492.1 MB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.92e-05/0.1385, allocations: 39.98 kB / 492.2 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005489/0.139, allocations: 149.9 kB / 492.3 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/0.141, allocations: 1.249 MB / 493.6 MB, free: 2.805 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007626/0.1486, allocations: 6.497 MB / 0.4884 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001463/0.1501, allocations: 0.9179 MB / 0.4893 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007253/0.1508, allocations: 0.5005 MB / 0.4897 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.618e-05/0.1509, allocations: 16.98 kB / 0.4898 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.1509, allocations: 43.56 kB / 0.4898 GB, free: 10.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=91): time 2.594e-06/0.151, allocations: 0 / 0.4898 GB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=96): time 0.006057/0.157, allocations: 3.673 MB / 0.4934 GB, free: 6.598 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.1571, allocations: 90.11 kB / 0.4935 GB, free: 6.492 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007703/0.1579, allocations: 0.7273 MB / 0.4942 GB, free: 5.754 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.393e-05/0.1579, allocations: 41.7 kB / 0.4942 GB, free: 5.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003591/0.1583, allocations: 0.5613 MB / 0.4948 GB, free: 5.137 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00026/0.1586, allocations: 370.8 kB / 0.4951 GB, free: 4.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003224/0.1589, allocations: 230.8 kB / 0.4953 GB, free: 4.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1591, allocations: 414.7 kB / 0.4957 GB, free: 4.125 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008516/0.1599, allocations: 0.5647 MB / 0.4963 GB, free: 3.559 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/0.161, allocations: 0.8776 MB / 0.4971 GB, free: 2.547 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.007806/0.1688, allocations: 3.24 MB / 0.5003 GB, free: 15.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.1688, allocations: 4 kB / 0.5003 GB, free: 15.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005315/0.1741, allocations: 2.733 MB / 0.503 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.1742, allocations: 16.09 kB / 0.503 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.1742, allocations: 8 kB / 0.503 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002764/0.177, allocations: 1.156 MB / 0.5041 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007494/0.1777, allocations: 191.7 kB / 0.5043 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1844/0.3621, allocations: 11.22 MB / 0.5153 GB, free: 69.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009527/0.3631, allocations: 55.23 kB / 0.5153 GB, free: 69.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/0.3632, allocations: 58.48 kB / 0.5154 GB, free: 69.32 MB / 398.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: $DER.inertia.w = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(24,28)} Notification: Performance of prepare postOptimizeDAE: time 0.000647/0.3639, allocations: 402.2 kB / 0.5158 GB, free: 69.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.364, allocations: 96.5 kB / 0.5159 GB, free: 69.21 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/0.3664, allocations: 1.406 MB / 0.5172 GB, free: 68.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.3664, allocations: 13.3 kB / 0.5172 GB, free: 68.94 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.3664, allocations: 2.188 kB / 0.5172 GB, free: 68.94 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/0.3664, allocations: 5.344 kB / 0.5172 GB, free: 68.94 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00434/0.3708, allocations: 2.674 MB / 0.5199 GB, free: 68.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3708, allocations: 2.25 kB / 0.5199 GB, free: 68.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/0.3723, allocations: 272.8 kB / 0.5201 GB, free: 68.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001765/0.3725, allocations: 58.84 kB / 0.5202 GB, free: 68.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.974e-05/0.3726, allocations: 39.55 kB / 0.5202 GB, free: 68.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.3739, allocations: 2.634 MB / 0.5228 GB, free: 65.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.374, allocations: 3.219 kB / 0.5228 GB, free: 65.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.3765, allocations: 1.895 MB / 0.5246 GB, free: 64.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003878/0.3769, allocations: 253.8 kB / 0.5249 GB, free: 64.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.3771, allocations: 37.12 kB / 0.5249 GB, free: 64.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/0.3776, allocations: 42.33 kB / 0.525 GB, free: 64.58 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001686/0.3778, allocations: 71.41 kB / 0.525 GB, free: 64.56 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.418e-05/0.3778, allocations: 26.69 kB / 0.5251 GB, free: 64.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006434/0.3785, allocations: 0.4888 MB / 0.5255 GB, free: 64.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3785, allocations: 0 / 0.5255 GB, free: 64.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001259/0.3798, allocations: 376.2 kB / 0.5259 GB, free: 64.32 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002922/0.3827, allocations: 2.478 MB / 0.5283 GB, free: 62.88 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003496/0.3862, allocations: 2.06 MB / 0.5303 GB, free: 62.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.3862, allocations: 4.375 kB / 0.5303 GB, free: 62.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009979/0.3872, allocations: 0.7489 MB / 0.5311 GB, free: 61.67 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3883, allocations: 209 kB / 0.5313 GB, free: 61.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01919/0.4075, allocations: 14.75 MB / 0.5457 GB, free: 53.96 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006101/0.4081, allocations: 1.306 MB / 0.5469 GB, free: 53.05 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008406/0.4089, allocations: 321.6 kB / 0.5472 GB, free: 52.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004645/0.4094, allocations: 459.3 kB / 0.5477 GB, free: 52.29 MB / 398.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4094, allocations: 0 / 0.5477 GB, free: 52.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0799/0.4893, allocations: 28.76 MB / 0.5758 GB, free: 23.79 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/0.4895, allocations: 237.3 kB / 0.576 GB, free: 23.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.147/2.637, allocations: 0 / 0.576 GB, free: 23.54 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_IG_res.mat does not exist to compare? outputFormat=mat