Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.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_PSGR,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_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,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_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 111.9 kB / 17.68 MB, free: 5.332 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.001054/0.001054, allocations: 192 kB / 18.62 MB, free: 4.41 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.339/1.339, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1718/0.1718, allocations: 38.05 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.66 kB / 400.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1159, allocations: 58.06 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01175/0.1277, allocations: 10.95 MB / 469.3 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.1388, allocations: 7.082 MB / 476.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.1403, allocations: 43.75 kB / 476.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02236/0.1627, allocations: 12.91 MB / 489.3 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003424/0.1662, allocations: 1.101 MB / 490.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.1681, allocations: 0.6511 MB / 491 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006855/0.175, allocations: 3.911 MB / 495 MB, free: 2.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001497/0.1765, allocations: 0.9924 MB / 496 MB, free: 1.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001825/0.1784, allocations: 1.082 MB / 497 MB, free: 484 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.1803, allocations: 1.394 MB / 498.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002357/0.1805, allocations: 148 kB / 498.6 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.1816, allocations: 0.5071 MB / 499.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009782/0.1826, allocations: 0.8846 MB / 500 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.1839, allocations: 0.9562 MB / 0.4892 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003079/0.187, allocations: 2.504 MB / 0.4916 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.187, allocations: 0 / 0.4916 GB, free: 10.06 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.187, allocations: 4 kB / 0.4916 GB, free: 10.06 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.187, allocations: 0 / 0.4916 GB, free: 10.06 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.004242/0.1913, allocations: 2.15 MB / 0.4937 GB, free: 7.848 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.1913, allocations: 11.89 kB / 0.4937 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.1929, allocations: 322.3 kB / 0.494 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002594/0.1955, allocations: 1.284 MB / 0.4953 GB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.546e-05/0.1956, allocations: 102.7 kB / 0.4954 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005213/0.1961, allocations: 231.8 kB / 0.4956 GB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003105/0.1993, allocations: 2.141 MB / 0.4977 GB, free: 3.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.591e-05/0.1993, allocations: 15.78 kB / 0.4977 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.1995, allocations: 63.97 kB / 0.4978 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005566/0.2, allocations: 182.6 kB / 0.498 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002715/0.2027, allocations: 1.76 MB / 0.4997 GB, free: 1.586 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.2597/0.4625, allocations: 8.566 MB / 0.508 GB, free: 52.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.4649, allocations: 1.814 MB / 0.5098 GB, free: 51.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.4662, allocations: 0.776 MB / 0.5106 GB, free: 51.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.681e-05/0.4663, allocations: 20.31 kB / 0.5106 GB, free: 51.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.4664, allocations: 55.67 kB / 0.5106 GB, free: 50.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 2.946e-06/0.4664, allocations: 1.75 kB / 0.5106 GB, free: 50.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01109/0.4775, allocations: 5.431 MB / 0.516 GB, free: 48.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.4776, allocations: 96.72 kB / 0.516 GB, free: 48.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.479, allocations: 1.039 MB / 0.5171 GB, free: 47.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.368e-05/0.4791, allocations: 51.98 kB / 0.5171 GB, free: 47.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004795/0.4796, allocations: 0.7662 MB / 0.5179 GB, free: 47.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.4799, allocations: 0.4924 MB / 0.5183 GB, free: 46.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004621/0.4804, allocations: 313.3 kB / 0.5186 GB, free: 46.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.617e-05/0.4805, allocations: 310.3 kB / 0.5189 GB, free: 46.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.4816, allocations: 0.7175 MB / 0.5196 GB, free: 46.19 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.4831, allocations: 1.183 MB / 0.5208 GB, free: 45.41 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.01083/0.4939, allocations: 4.993 MB / 0.5257 GB, free: 43.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.089e-05/0.494, allocations: 3.844 kB / 0.5257 GB, free: 43.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006328/0.5003, allocations: 3.598 MB / 0.5292 GB, free: 41.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.5003, allocations: 15.91 kB / 0.5292 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.5004, allocations: 11.91 kB / 0.5292 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003406/0.5038, allocations: 1.253 MB / 0.5304 GB, free: 40.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.5049, allocations: 316.8 kB / 0.5307 GB, free: 40.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01564/0.5206, allocations: 16.01 MB / 0.5464 GB, free: 23.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001457/0.522, allocations: 75.94 kB / 0.5464 GB, free: 23.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001339/0.5222, allocations: 72 kB / 0.5465 GB, free: 23.71 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 system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 5.051577893736758e-5 * $DER.generator.i_s[3] = 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: 63 * 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 (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0008825/0.5231, allocations: 0.5274 MB / 0.547 GB, free: 23.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.5233, allocations: 139.1 kB / 0.5472 GB, free: 23.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002656/0.526, allocations: 2.138 MB / 0.5492 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.526, allocations: 16 kB / 0.5493 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.526, allocations: 0 / 0.5493 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.526, allocations: 11.91 kB / 0.5493 GB, free: 20.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005262/0.5313, allocations: 3.843 MB / 0.553 GB, free: 16.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.5313, allocations: 15.86 kB / 0.553 GB, free: 16.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/0.5328, allocations: 323.9 kB / 0.5533 GB, free: 16.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004614/0.5333, allocations: 200 kB / 0.5535 GB, free: 16.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001004/0.5334, allocations: 51.97 kB / 0.5536 GB, free: 16.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003928/0.5373, allocations: 7.921 MB / 0.5613 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5374, allocations: 7.969 kB / 0.5613 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003365/0.5407, allocations: 2.829 MB / 0.5641 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007156/0.5415, allocations: 323.3 kB / 0.5644 GB, free: 4.297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001795/0.5416, allocations: 47.89 kB / 0.5644 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/0.5424, allocations: 59.94 kB / 0.5645 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.5426, allocations: 105 kB / 0.5646 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-05/0.5427, allocations: 40.27 kB / 0.5646 GB, free: 4.051 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000751/0.5434, allocations: 0.6892 MB / 0.5653 GB, free: 3.355 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5434, allocations: 0 / 0.5653 GB, free: 3.355 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001831/0.5453, allocations: 0.5074 MB / 0.5658 GB, free: 2.852 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,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]) * 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 (126): * Single equations (assignments): 120 * 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.0003541/0.5456, allocations: 177.4 kB / 0.566 GB, free: 2.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004229/0.5499, allocations: 2.879 MB / 0.5688 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/0.5499, allocations: 0 / 0.5688 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002104/0.552, allocations: 1.371 MB / 0.5701 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/0.5536, allocations: 324.8 kB / 0.5704 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008047/0.5617, allocations: 4.994 MB / 0.5753 GB, free: 8.996 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/0.5631, allocations: 1.549 MB / 0.5768 GB, free: 7.418 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001526/0.5647, allocations: 448 kB / 0.5773 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/0.565, allocations: 108.8 kB / 0.5774 GB, free: 6.871 MB / 398.1 MB Notification: Performance of SimCode: time 1.262e-06/0.565, allocations: 0 / 0.5774 GB, free: 6.871 MB / 398.1 MB Notification: Performance of Templates: time 0.04758/0.6126, allocations: 26.93 MB / 0.6037 GB, free: 12.15 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & ./PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)