Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 91.86 kB / 16.65 MB, free: 6.59 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.0008801/0.0008802, allocations: 182.9 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1786/0.1786, allocations: 38.05 MB / 310.1 MB, free: 5.91 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004758/0.0004759, allocations: 16 kB / 377.2 MB, free: 2.711 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2448, allocations: 56.33 MB / 433.5 MB, free: 18.67 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008047/0.2529, allocations: 9.961 MB / 443.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005745/0.2587, allocations: 3.627 MB / 447.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.2604, allocations: 67.62 kB / 447.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.2617, allocations: 266.2 kB / 447.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003485/0.2652, allocations: 0.7156 MB / 448.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.2675, allocations: 423.5 kB / 448.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003653/0.2712, allocations: 2.436 MB / 451 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.273, allocations: 1.013 MB / 452 MB, free: 64 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001577/0.2746, allocations: 0.5791 MB / 452.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002025/0.2766, allocations: 0.7509 MB / 453.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004732/0.2771, allocations: 56 kB / 453.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.2782, allocations: 295.5 kB / 453.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007166/0.279, allocations: 406.7 kB / 454.1 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001537/0.2805, allocations: 0.6195 MB / 454.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00291/0.2834, allocations: 1.845 MB / 456.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.2834, allocations: 0 / 456.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.2835, allocations: 0 / 456.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.333e-05/0.2836, allocations: 0 / 456.5 MB, free: 11.5 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003765/0.2873, allocations: 1.41 MB / 457.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.2874, allocations: 8.031 kB / 457.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007847/0.2882, allocations: 187.2 kB / 458.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.2898, allocations: 0.9225 MB / 459 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.968e-05/0.2899, allocations: 74.06 kB / 459.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.2901, allocations: 123.9 kB / 459.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.2923, allocations: 1.356 MB / 460.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/0.2923, allocations: 7.906 kB / 460.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.2924, allocations: 40 kB / 460.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001193/0.2926, allocations: 73.97 kB / 460.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001776/0.2944, allocations: 1.077 MB / 461.8 MB, free: 6.051 MB / 334.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007289/0.3017, allocations: 5.16 MB / 467 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.3028, allocations: 0.7608 MB / 467.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005271/0.3033, allocations: 348.2 kB / 468.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.65e-05/0.3034, allocations: 12.5 kB / 468.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.934e-05/0.3035, allocations: 47.03 kB / 468.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=64): time 4.498e-06/0.3035, allocations: 3.938 kB / 468.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=71): time 0.00612/0.3096, allocations: 2.701 MB / 470.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.087e-05/0.3097, allocations: 145.1 kB / 471 MB, free: 12.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.3108, allocations: 0.7472 MB / 471.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.096e-05/0.3109, allocations: 37.7 kB / 471.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004131/0.3113, allocations: 0.5688 MB / 472.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.3115, allocations: 252.4 kB / 472.6 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/0.3117, allocations: 81.7 kB / 472.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3118, allocations: 345.9 kB / 473 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000537/0.3123, allocations: 285.9 kB / 473.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006755/0.313, allocations: 0.5529 MB / 473.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00126/0.3143, allocations: 0.9131 MB / 474.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.3143, allocations: 3.938 kB / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002941/0.3173, allocations: 1.375 MB / 476.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002588/0.3175, allocations: 330 kB / 476.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.3176, allocations: 8 kB / 476.4 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001434/0.319, allocations: 424.5 kB / 476.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006534/0.3197, allocations: 167.7 kB / 477 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008402/0.3281, allocations: 4.949 MB / 482 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000891/0.329, allocations: 43.92 kB / 482 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001596/0.3292, allocations: 40 kB / 482 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.3292, allocations: 7.281 kB / 482 MB, free: 0.832 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002914/0.3322, allocations: 1.156 MB / 483.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.708e-05/0.3322, allocations: 8 kB / 483.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.3336, allocations: 404.8 kB / 483.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006809/0.3343, allocations: 167.7 kB / 483.8 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007848/0.3422, allocations: 4.643 MB / 488.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008645/0.3431, allocations: 35.98 kB / 488.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.3433, allocations: 32 kB / 488.5 MB, free: 10.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.001017/0.3443, allocations: 440.7 kB / 488.9 MB, free: 9.812 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/0.3446, allocations: 90.88 kB / 489 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001707/0.3463, allocations: 0.8869 MB / 489.9 MB, free: 8.801 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.3464, allocations: 8 kB / 489.9 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.3464, allocations: 3.938 kB / 489.9 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.3464, allocations: 7.984 kB / 489.9 MB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004315/0.3507, allocations: 1.869 MB / 491.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.025e-06/0.3507, allocations: 4 kB / 491.8 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008627/0.3516, allocations: 163.8 kB / 491.9 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.416e-05/0.3516, allocations: 4 kB / 491.9 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-05/0.3517, allocations: 20 kB / 492 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/0.3517, allocations: 7.984 kB / 492 MB, free: 6.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3517, allocations: 3.984 kB / 492 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00225/0.354, allocations: 1.282 MB / 493.3 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/0.3545, allocations: 227.9 kB / 493.5 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000155/0.3546, allocations: 16 kB / 493.5 MB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/0.3551, allocations: 31.92 kB / 493.5 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.089e-05/0.3552, allocations: 44.59 kB / 493.6 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.3553, allocations: 19.98 kB / 493.6 MB, free: 4.996 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007569/0.356, allocations: 0.5107 MB / 494.1 MB, free: 4.488 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3561, allocations: 4 kB / 494.1 MB, free: 4.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001805/0.3579, allocations: 473.3 kB / 494.6 MB, free: 4.023 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000323/0.3582, allocations: 139.1 kB / 494.7 MB, free: 3.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.3618, allocations: 1.923 MB / 496.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.3619, allocations: 1.562 kB / 496.6 MB, free: 1.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005609/0.3624, allocations: 351.7 kB / 497 MB, free: 1.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.3639, allocations: 242.8 kB / 497.2 MB, free: 1.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005344/0.3693, allocations: 3.138 MB / 0.4886 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001226/0.3705, allocations: 1.205 MB / 0.4898 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001026/0.3715, allocations: 243.8 kB / 0.49 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.3718, allocations: 75.36 kB / 0.4901 GB, free: 12.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3719, allocations: 0 / 0.4901 GB, free: 12.64 MB / 382.1 MB Notification: Performance of Templates: time 0.03328/0.4051, allocations: 16.87 MB / 0.5066 GB, free: 11.79 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) Environment - environmentSimulation: