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.001537/0.001537, allocations: 108.3 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.001684/0.001684, 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.349/1.349, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1804/0.1804, allocations: 38.03 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 62.73 kB / 400.2 MB, free: 33.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1042, allocations: 58.07 MB / 458.3 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01167/0.1159, allocations: 10.94 MB / 469.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.1266, allocations: 7.081 MB / 476.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001086/0.1277, allocations: 51.69 kB / 476.4 MB, free: 5.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02084/0.1485, allocations: 12.91 MB / 489.3 MB, free: 8.293 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003034/0.1516, allocations: 1.093 MB / 490.4 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001899/0.1535, allocations: 0.6588 MB / 491 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006092/0.1596, allocations: 3.907 MB / 494.9 MB, free: 2.613 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.1613, allocations: 1 MB / 495.9 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001925/0.1632, allocations: 1.078 MB / 497 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002576/0.1658, allocations: 1.398 MB / 498.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005067/0.1663, allocations: 144 kB / 498.6 MB, free: 14.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001314/0.1677, allocations: 0.511 MB / 499.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00108/0.1688, allocations: 0.8846 MB / 500 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001439/0.1702, allocations: 0.9601 MB / 0.4892 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002637/0.1729, allocations: 2.504 MB / 0.4916 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1729, allocations: 0 / 0.4916 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1729, allocations: 0 / 0.4916 GB, free: 10.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.87e-05/0.1729, allocations: 0 / 0.4916 GB, free: 10.09 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.004142/0.1771, allocations: 2.15 MB / 0.4937 GB, free: 7.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1771, allocations: 11.89 kB / 0.4937 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001643/0.1788, allocations: 322.3 kB / 0.494 GB, free: 7.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002747/0.1815, allocations: 1.284 MB / 0.4953 GB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.47e-05/0.1816, allocations: 102.6 kB / 0.4954 GB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005779/0.1822, allocations: 231.8 kB / 0.4956 GB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003103/0.1853, allocations: 2.145 MB / 0.4977 GB, free: 3.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.62e-05/0.1854, allocations: 15.78 kB / 0.4977 GB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001334/0.1855, allocations: 55.98 kB / 0.4978 GB, free: 3.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005752/0.1861, allocations: 190.7 kB / 0.498 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002803/0.1889, allocations: 1.756 MB / 0.4997 GB, free: 1.621 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.2035/0.3924, allocations: 8.559 MB / 0.508 GB, free: 52.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002263/0.3947, allocations: 1.813 MB / 0.5098 GB, free: 51.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/0.396, allocations: 0.7882 MB / 0.5106 GB, free: 51.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.371e-05/0.3961, allocations: 17.45 kB / 0.5106 GB, free: 51.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.3962, allocations: 49.33 kB / 0.5106 GB, free: 51.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 4.067e-06/0.3962, allocations: 0 / 0.5106 GB, free: 51.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01093/0.4071, allocations: 5.437 MB / 0.5159 GB, free: 48.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.4072, allocations: 92.75 kB / 0.516 GB, free: 48.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00163/0.4088, allocations: 1.036 MB / 0.517 GB, free: 48.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.322e-05/0.4089, allocations: 48.89 kB / 0.5171 GB, free: 48.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005411/0.4095, allocations: 0.7696 MB / 0.5178 GB, free: 47.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003553/0.4098, allocations: 0.497 MB / 0.5183 GB, free: 47.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004475/0.4103, allocations: 312.3 kB / 0.5186 GB, free: 46.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.892e-05/0.4103, allocations: 303.9 kB / 0.5189 GB, free: 46.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.4115, allocations: 0.7185 MB / 0.5196 GB, free: 46.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.4129, allocations: 1.189 MB / 0.5208 GB, free: 45.66 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.01108/0.424, allocations: 4.992 MB / 0.5257 GB, free: 43.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.848e-05/0.424, allocations: 4.531 kB / 0.5257 GB, free: 43.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006302/0.4303, allocations: 3.605 MB / 0.5292 GB, free: 41.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/0.4304, allocations: 12.72 kB / 0.5292 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.42e-05/0.4304, allocations: 13.12 kB / 0.5292 GB, free: 41.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003282/0.4337, allocations: 1.251 MB / 0.5304 GB, free: 41.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.4348, allocations: 321.2 kB / 0.5307 GB, free: 40.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/0.4506, allocations: 16.01 MB / 0.5464 GB, free: 24.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.4519, allocations: 83.67 kB / 0.5464 GB, free: 23.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.452, allocations: 76.12 kB / 0.5465 GB, free: 23.89 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.0007609/0.4528, allocations: 0.5149 MB / 0.547 GB, free: 23.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001888/0.453, allocations: 138.3 kB / 0.5472 GB, free: 23.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002637/0.4556, allocations: 2.142 MB / 0.5492 GB, free: 20.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.336e-06/0.4557, allocations: 16 kB / 0.5493 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.4557, allocations: 0 / 0.5493 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.4557, allocations: 11.97 kB / 0.5493 GB, free: 20.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005119/0.4608, allocations: 3.838 MB / 0.553 GB, free: 16.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4608, allocations: 7.938 kB / 0.553 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.4623, allocations: 320.7 kB / 0.5533 GB, free: 16.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004528/0.4628, allocations: 204 kB / 0.5535 GB, free: 16.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.731e-05/0.4629, allocations: 55.91 kB / 0.5536 GB, free: 16.4 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003943/0.4669, allocations: 7.931 MB / 0.5613 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4669, allocations: 0 / 0.5613 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003216/0.4701, allocations: 2.831 MB / 0.5641 GB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006409/0.4708, allocations: 327.3 kB / 0.5644 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/0.4709, allocations: 43.98 kB / 0.5644 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007048/0.4717, allocations: 55.94 kB / 0.5645 GB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/0.4719, allocations: 105 kB / 0.5646 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.65e-05/0.4719, allocations: 39.98 kB / 0.5646 GB, free: 4.242 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007057/0.4726, allocations: 0.6931 MB / 0.5653 GB, free: 3.543 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4727, allocations: 0 / 0.5653 GB, free: 3.543 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001671/0.4743, allocations: 0.511 MB / 0.5658 GB, free: 3.039 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.0003201/0.4747, allocations: 171.7 kB / 0.566 GB, free: 2.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003755/0.4784, allocations: 2.87 MB / 0.5688 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4784, allocations: 1.625 kB / 0.5688 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/0.4804, allocations: 1.376 MB / 0.5701 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001298/0.4817, allocations: 325.2 kB / 0.5704 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007171/0.4889, allocations: 4.987 MB / 0.5753 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001183/0.4901, allocations: 1.553 MB / 0.5768 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001188/0.4913, allocations: 444.1 kB / 0.5772 GB, free: 7.176 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003528/0.4916, allocations: 103.4 kB / 0.5773 GB, free: 7.074 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4917, allocations: 0 / 0.5773 GB, free: 7.074 MB / 398.1 MB Notification: Performance of Templates: time 0.04113/0.5328, allocations: 26.95 MB / 0.6037 GB, free: 12.34 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 gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)