Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.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: translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGI,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|meter.i.1.|meter.i.2.|meter.i.3.|meter.p.1.|meter.p.2.|meter.p.3.|meter.v.1.|meter.v.2.|meter.v.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009014/0.0009014, allocations: 92.73 kB / 16.65 MB, free: 6.586 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.001186/0.001186, allocations: 181.2 kB / 17.56 MB, free: 6.203 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.272/1.272, allocations: 223.3 MB / 241.6 MB, free: 236 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1564/0.1564, allocations: 38.09 MB / 330.8 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002652/0.0002652, allocations: 8 kB / 400.7 MB, free: 34.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08489/0.08517, allocations: 59.17 MB / 459.9 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGI): time 0.01151/0.09672, allocations: 12.51 MB / 472.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1073, allocations: 7.766 MB / 480.1 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001307/0.1086, allocations: 87.38 kB / 480.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01679/0.1254, allocations: 12.51 MB / 492.7 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003554/0.129, allocations: 1.074 MB / 493.8 MB, free: 5.082 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001571/0.1306, allocations: 0.6201 MB / 494.4 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005534/0.1361, allocations: 5.654 MB / 0.4884 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001727/0.1379, allocations: 1.258 MB / 0.4896 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.1389, allocations: 0.9099 MB / 0.4905 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001528/0.1405, allocations: 1.468 MB / 0.4919 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.1406, allocations: 76 kB / 0.492 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007563/0.1414, allocations: 459.3 kB / 0.4924 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000661/0.1421, allocations: 0.8376 MB / 0.4932 GB, free: 9.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007409/0.1428, allocations: 0.9147 MB / 0.4941 GB, free: 8.801 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001788/0.1446, allocations: 2.402 MB / 0.4965 GB, free: 6.391 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1446, allocations: 4 kB / 0.4965 GB, free: 6.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1446, allocations: 0 / 0.4965 GB, free: 6.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.1447, allocations: 0 / 0.4965 GB, free: 6.387 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 409 * Number of variables: 409 Notification: Performance of Generate backend data structure: time 0.003361/0.148, allocations: 1.893 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.024e-05/0.1481, allocations: 11.97 kB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001609/0.1497, allocations: 334.3 kB / 0.4987 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00207/0.1518, allocations: 1.28 MB / 0.4999 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.62e-05/0.1518, allocations: 106.7 kB / 0.5 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/0.1523, allocations: 239.8 kB / 0.5002 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002834/0.1552, allocations: 2.196 MB / 0.5024 GB, free: 128 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.035e-05/0.1552, allocations: 7.906 kB / 0.5024 GB, free: 120 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/0.1554, allocations: 63.97 kB / 0.5025 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1728/0.3282, allocations: 178.5 kB / 0.5026 GB, free: 57.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003869/0.3321, allocations: 1.843 MB / 0.5044 GB, free: 57.36 MB / 382.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.01012/0.3422, allocations: 8.589 MB / 0.5128 GB, free: 52.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.3445, allocations: 1.906 MB / 0.5147 GB, free: 51.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.346, allocations: 0.8055 MB / 0.5155 GB, free: 50.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.337e-05/0.3461, allocations: 17.53 kB / 0.5155 GB, free: 50.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/0.3461, allocations: 46.64 kB / 0.5155 GB, free: 50.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=130): time 3.827e-06/0.3461, allocations: 3.031 kB / 0.5155 GB, free: 50.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=145): time 0.01078/0.3569, allocations: 6.009 MB / 0.5214 GB, free: 47.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.357, allocations: 93.3 kB / 0.5215 GB, free: 47.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.358, allocations: 1.069 MB / 0.5225 GB, free: 47.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.905e-05/0.3581, allocations: 53.55 kB / 0.5226 GB, free: 47.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003102/0.3584, allocations: 0.7841 MB / 0.5233 GB, free: 46.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/0.3587, allocations: 0.522 MB / 0.5239 GB, free: 46.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.3589, allocations: 158.3 kB / 0.524 GB, free: 46.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.184e-05/0.3589, allocations: 306.2 kB / 0.5243 GB, free: 45.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/0.3599, allocations: 0.7455 MB / 0.525 GB, free: 45.51 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.3611, allocations: 1.24 MB / 0.5262 GB, free: 44.54 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.008516/0.3696, allocations: 4.351 MB / 0.5305 GB, free: 41.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.3696, allocations: 4 kB / 0.5305 GB, free: 41.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006184/0.3758, allocations: 3.986 MB / 0.5344 GB, free: 37.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.3759, allocations: 8 kB / 0.5344 GB, free: 37.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3759, allocations: 16 kB / 0.5344 GB, free: 37.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003333/0.3792, allocations: 1.454 MB / 0.5358 GB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008928/0.3801, allocations: 291.5 kB / 0.5361 GB, free: 35.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01641/0.3965, allocations: 19.19 MB / 0.5548 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001011/0.3976, allocations: 79.94 kB / 0.5549 GB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.3977, allocations: 80 kB / 0.555 GB, free: 15.52 MB / 382.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.PI.x = 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: 66 * 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 (144): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,2,100.0%), (1,1,100.0%), (1,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,22), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0006673/0.3984, allocations: 0.5239 MB / 0.5555 GB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.3985, allocations: 142.2 kB / 0.5556 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002589/0.4011, allocations: 2.228 MB / 0.5578 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.4011, allocations: 16 kB / 0.5578 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4012, allocations: 0 / 0.5578 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.4012, allocations: 11.97 kB / 0.5578 GB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004545/0.4057, allocations: 4 MB / 0.5618 GB, free: 8.352 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.4057, allocations: 7.938 kB / 0.5618 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/0.4072, allocations: 347.8 kB / 0.5621 GB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004265/0.4076, allocations: 204 kB / 0.5623 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.6e-05/0.4077, allocations: 54.05 kB / 0.5623 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003352/0.4111, allocations: 7.305 MB / 0.5695 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.4111, allocations: 11.91 kB / 0.5695 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003796/0.4149, allocations: 2.944 MB / 0.5724 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004802/0.4154, allocations: 343.2 kB / 0.5727 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.4156, allocations: 43.98 kB / 0.5727 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007139/0.4163, allocations: 63.94 kB / 0.5728 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.4165, allocations: 105 kB / 0.5729 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.944e-05/0.4166, allocations: 43.98 kB / 0.5729 GB, free: 12.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0008008/0.4174, allocations: 0.7139 MB / 0.5736 GB, free: 11.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4174, allocations: 0 / 0.5736 GB, free: 11.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001648/0.419, allocations: 0.5404 MB / 0.5742 GB, free: 10.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 26 (inertia.phi,inertia.w,meterDC.pav,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],inverter2.vDC1,line.v[1,2],line.v[1,3],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],PI.x) * 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 (137): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (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.0003443/0.4194, allocations: 197.1 kB / 0.5743 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004658/0.4241, allocations: 3.221 MB / 0.5775 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4241, allocations: 4 kB / 0.5775 GB, free: 7.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.426, allocations: 1.41 MB / 0.5789 GB, free: 5.848 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.4276, allocations: 323.7 kB / 0.5792 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007512/0.4351, allocations: 6.253 MB / 0.5853 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.4364, allocations: 1.588 MB / 0.5868 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001242/0.4376, allocations: 440.7 kB / 0.5873 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/0.4379, allocations: 103.4 kB / 0.5874 GB, free: 13.07 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.438, allocations: 0 / 0.5874 GB, free: 13.07 MB / 414.1 MB Notification: Performance of Templates: time 0.04176/0.4797, allocations: 26.64 MB / 0.6134 GB, free: 2.625 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGI.pipe 2>&1)