Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_PSGR,fileNamePrefix="PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR",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.001047/0.001047, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001079/0.001079, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.301/1.301, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1711/0.1711, allocations: 38.03 MB / 329.7 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 57.72 kB / 398.9 MB, free: 33.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09894, allocations: 58.06 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.01248/0.1115, allocations: 10.95 MB / 467.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.1222, allocations: 7.09 MB / 475 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.1232, allocations: 51.62 kB / 475 MB, free: 5.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01991/0.1432, allocations: 12.89 MB / 487.9 MB, free: 8.867 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002571/0.1457, allocations: 1.112 MB / 489 MB, free: 7.75 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001583/0.1473, allocations: 0.655 MB / 489.7 MB, free: 7.094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004631/0.152, allocations: 3.899 MB / 493.6 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001438/0.1534, allocations: 1 MB / 494.6 MB, free: 2.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.155, allocations: 1.078 MB / 495.7 MB, free: 1.078 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001925/0.157, allocations: 1.398 MB / 497.1 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004001/0.1574, allocations: 144 kB / 497.2 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.1585, allocations: 0.5071 MB / 497.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008776/0.1594, allocations: 0.8885 MB / 498.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001323/0.1607, allocations: 0.9601 MB / 499.6 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002529/0.1633, allocations: 2.469 MB / 0.4903 GB, free: 10.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1633, allocations: 0 / 0.4903 GB, free: 10.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.1633, allocations: 4 kB / 0.4903 GB, free: 10.69 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.793e-05/0.1633, allocations: 3.938 kB / 0.4903 GB, free: 10.69 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.003999/0.1673, allocations: 2.142 MB / 0.4924 GB, free: 8.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1674, allocations: 11.89 kB / 0.4924 GB, free: 8.473 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000249/0.1676, allocations: 224.2 kB / 0.4926 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001637/0.1693, allocations: 326.3 kB / 0.4929 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002105/0.1714, allocations: 1.229 MB / 0.4941 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.548e-05/0.1715, allocations: 102.7 kB / 0.4942 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004922/0.172, allocations: 239.7 kB / 0.4944 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003009/0.175, allocations: 2.153 MB / 0.4965 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.175, allocations: 4 kB / 0.4965 GB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.1752, allocations: 67.91 kB / 0.4966 GB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006508/0.1759, allocations: 182.7 kB / 0.4968 GB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002787/0.1786, allocations: 1.752 MB / 0.4985 GB, free: 2.039 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.1656/0.3442, allocations: 8.615 MB / 0.5069 GB, free: 52.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002108/0.3464, allocations: 1.818 MB / 0.5087 GB, free: 51.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001232/0.3476, allocations: 0.7769 MB / 0.5094 GB, free: 51.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.498e-05/0.3477, allocations: 16.75 kB / 0.5094 GB, free: 51.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.3477, allocations: 57.31 kB / 0.5095 GB, free: 51.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.086e-06/0.3477, allocations: 0 / 0.5095 GB, free: 51.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01024/0.358, allocations: 5.446 MB / 0.5148 GB, free: 48.58 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.3581, allocations: 91.48 kB / 0.5149 GB, free: 48.48 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001302/0.3594, allocations: 1.037 MB / 0.5159 GB, free: 48.08 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.796e-05/0.3595, allocations: 50.55 kB / 0.516 GB, free: 48.03 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003841/0.3599, allocations: 0.766 MB / 0.5167 GB, free: 47.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/0.3602, allocations: 0.4964 MB / 0.5172 GB, free: 47.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004179/0.3606, allocations: 308.4 kB / 0.5175 GB, free: 46.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.895e-05/0.3606, allocations: 303 kB / 0.5178 GB, free: 46.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.3617, allocations: 0.7218 MB / 0.5185 GB, free: 46.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.363, allocations: 1.186 MB / 0.5196 GB, free: 45.59 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.01027/0.3733, allocations: 5.011 MB / 0.5245 GB, free: 43.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.3733, allocations: 4.125 kB / 0.5245 GB, free: 43.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006164/0.3795, allocations: 3.594 MB / 0.5281 GB, free: 41.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.3795, allocations: 15.03 kB / 0.5281 GB, free: 41.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.3795, allocations: 19.5 kB / 0.5281 GB, free: 41.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003211/0.3828, allocations: 1.263 MB / 0.5293 GB, free: 40.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.3839, allocations: 315.9 kB / 0.5296 GB, free: 40.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0163/0.4002, allocations: 16.02 MB / 0.5453 GB, free: 24.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.4015, allocations: 80.8 kB / 0.5453 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/0.4017, allocations: 79.92 kB / 0.5454 GB, free: 23.94 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-05 * $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.0008655/0.4025, allocations: 0.5116 MB / 0.5459 GB, free: 23.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003109/0.4029, allocations: 142.2 kB / 0.5461 GB, free: 23.28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002781/0.4056, allocations: 2.146 MB / 0.5482 GB, free: 21.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.4057, allocations: 12 kB / 0.5482 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.4057, allocations: 4.125 kB / 0.5482 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.4057, allocations: 7.984 kB / 0.5482 GB, free: 21.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005259/0.411, allocations: 3.851 MB / 0.5519 GB, free: 17.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.411, allocations: 9.016 kB / 0.5519 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/0.4125, allocations: 319.6 kB / 0.5523 GB, free: 16.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005096/0.4131, allocations: 204 kB / 0.5524 GB, free: 16.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001257/0.4132, allocations: 47.97 kB / 0.5525 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004026/0.4172, allocations: 7.933 MB / 0.5602 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.4172, allocations: 11.95 kB / 0.5602 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003184/0.4204, allocations: 2.825 MB / 0.563 GB, free: 4.855 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.4209, allocations: 331.2 kB / 0.5633 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/0.4212, allocations: 47.97 kB / 0.5634 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007647/0.4219, allocations: 55.95 kB / 0.5634 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.4221, allocations: 97.05 kB / 0.5635 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-05/0.4222, allocations: 39.98 kB / 0.5636 GB, free: 4.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000714/0.4229, allocations: 0.7009 MB / 0.5642 GB, free: 3.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.423, allocations: 0 / 0.5642 GB, free: 3.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001561/0.4245, allocations: 0.4998 MB / 0.5647 GB, free: 3.074 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.003619/0.4281, allocations: 3.451 MB / 0.5681 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00632/0.4345, allocations: 3.688 MB / 0.5717 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4345, allocations: 1.75 kB / 0.5717 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001981/0.4365, allocations: 1.374 MB / 0.573 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.4378, allocations: 318.2 kB / 0.5733 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03081/0.4687, allocations: 18.89 MB / 0.5918 GB, free: 6.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.4703, allocations: 1.549 MB / 0.5933 GB, free: 4.652 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001294/0.4716, allocations: 448.1 kB / 0.5937 GB, free: 4.211 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009021/0.4725, allocations: 0.6594 MB / 0.5944 GB, free: 3.551 MB / 414.1 MB Notification: Performance of SimCode: time 9.11e-07/0.4725, allocations: 0 / 0.5944 GB, free: 3.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07799/0.5505, allocations: 41.36 MB / 0.6348 GB, free: 10.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.02/12.57, allocations: 11.69 kB / 0.6348 GB, free: 10.41 MB / 462.1 MB (rm -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe >> ../files/PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Wind_WindTurbine_PSGR.fmu > PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.pipe 2>&1)