Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008982/0.0008982, allocations: 91.84 kB / 16.65 MB, free: 6.266 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.001075/0.001075, allocations: 177.5 kB / 17.56 MB, free: 5.879 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.512/1.512, 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.187/0.187, allocations: 38.06 MB / 310.1 MB, free: 5.922 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.0006544/0.0006544, allocations: 12 kB / 377.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3226, allocations: 56.33 MB / 433.5 MB, free: 18.7 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007147/0.3298, allocations: 8.226 MB / 441.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005713/0.3355, allocations: 3.37 MB / 445.1 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009462/0.3365, allocations: 51.62 kB / 445.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006559/0.3372, allocations: 190.8 kB / 445.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.3388, allocations: 0.6303 MB / 446 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008545/0.3397, allocations: 339.4 kB / 446.3 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001678/0.3414, allocations: 2.003 MB / 448.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.3427, allocations: 1.049 MB / 449.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006501/0.3434, allocations: 450 kB / 449.8 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000758/0.3442, allocations: 0.6228 MB / 450.4 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.734e-05/0.3442, allocations: 36 kB / 450.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007342/0.345, allocations: 467.1 kB / 450.9 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002786/0.3453, allocations: 414.9 kB / 451.3 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003309/0.3456, allocations: 483.3 kB / 451.8 MB, free: 316 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001256/0.3469, allocations: 1.343 MB / 453.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3469, allocations: 8 kB / 453.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3469, allocations: 0 / 453.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.3469, allocations: 0 / 453.1 MB, free: 14.95 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002054/0.349, allocations: 1.079 MB / 454.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.349, allocations: 8.031 kB / 454.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001191/0.3502, allocations: 215.5 kB / 454.4 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.3515, allocations: 0.6827 MB / 455.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.91e-05/0.3516, allocations: 58.38 kB / 455.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000234/0.3518, allocations: 103.8 kB / 455.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.3534, allocations: 1.111 MB / 456.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.006e-05/0.3535, allocations: 7.938 kB / 456.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.525e-05/0.3535, allocations: 32 kB / 456.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001657/0.3537, allocations: 73.95 kB / 456.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/0.3551, allocations: 0.8899 MB / 457.4 MB, free: 10.56 MB / 334.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.005289/0.3604, allocations: 4.093 MB / 461.5 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.3611, allocations: 418 kB / 461.9 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003786/0.3615, allocations: 270.2 kB / 462.1 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.802e-05/0.3615, allocations: 15.92 kB / 462.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.3616, allocations: 38.56 kB / 462.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.795e-06/0.3616, allocations: 0 / 462.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.004365/0.366, allocations: 1.993 MB / 464.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.366, allocations: 85.55 kB / 464.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007039/0.3668, allocations: 0.5654 MB / 464.8 MB, free: 2.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.3668, allocations: 33.7 kB / 464.9 MB, free: 2.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/0.3671, allocations: 466.4 kB / 465.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.3673, allocations: 197.2 kB / 465.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.3674, allocations: 73.67 kB / 465.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.3676, allocations: 382.7 kB / 466 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.368, allocations: 273.8 kB / 466.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005757/0.3686, allocations: 0.5003 MB / 466.7 MB, free: 0.7305 MB / 334.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.002983/0.3716, allocations: 1.408 MB / 468.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3716, allocations: 0 / 468.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001909/0.3736, allocations: 1.099 MB / 469.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3736, allocations: 8 kB / 469.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001193/0.3748, allocations: 0.7532 MB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005342/0.3753, allocations: 162.4 kB / 470.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.3759, allocations: 171.8 kB / 470.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004129/0.3801, allocations: 4.498 MB / 474.8 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007933/0.3809, allocations: 35.97 kB / 474.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.004e-05/0.381, allocations: 36 kB / 474.9 MB, free: 7.98 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * 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 initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007358/0.3817, allocations: 325.4 kB / 475.2 MB, free: 7.652 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.3819, allocations: 67.34 kB / 475.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.383, allocations: 0.6395 MB / 475.9 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.3831, allocations: 8 kB / 475.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.3831, allocations: 0 / 475.9 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3831, allocations: 4 kB / 475.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.3857, allocations: 1.526 MB / 477.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3857, allocations: 0 / 477.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005954/0.3863, allocations: 127.8 kB / 477.6 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/0.3863, allocations: 4 kB / 477.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/0.3864, allocations: 23.92 kB / 477.6 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.3864, allocations: 4 kB / 477.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3864, allocations: 0 / 477.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001368/0.3878, allocations: 0.9514 MB / 478.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/0.3881, allocations: 184.3 kB / 478.7 MB, free: 3.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.947e-05/0.3882, allocations: 23.94 kB / 478.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003321/0.3886, allocations: 15.98 kB / 478.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.919e-05/0.3887, allocations: 32.39 kB / 478.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.3887, allocations: 20.12 kB / 478.8 MB, free: 3.891 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005361/0.3893, allocations: 419 kB / 479.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3893, allocations: 0 / 479.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009773/0.3902, allocations: 228 kB / 479.5 MB, free: 3.258 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[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 (55): * Single equations (assignments): 54 * 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.0003307/0.3906, allocations: 142.8 kB / 479.6 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.3922, allocations: 1.01 MB / 480.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.167e-05/0.3923, allocations: 7.938 kB / 480.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003729/0.3927, allocations: 263.8 kB / 480.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001058/0.3937, allocations: 158.6 kB / 481 MB, free: 1.648 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00353/0.3973, allocations: 2.435 MB / 483.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007351/0.398, allocations: 1.082 MB / 484.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005945/0.3986, allocations: 201.8 kB / 484.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001837/0.3988, allocations: 55.44 kB / 484.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3988, allocations: 0 / 484.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of Templates: time 0.01664/0.4155, allocations: 8.213 MB / 493 MB, free: 5.602 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1) Environment - environmentSimulation: