Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009497/0.0009497, allocations: 178.1 kB / 16.07 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.228/1.228, allocations: 205.4 MB / 222.2 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007433/0.0007435, allocations: 82.42 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1621/0.1621, allocations: 38.07 MB / 356.9 MB, free: 1.742 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003323, allocations: 8 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2322, allocations: 56.33 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007045/0.2393, allocations: 7.805 MB / 487.4 MB, free: 3.93 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004503/0.2439, allocations: 3.197 MB / 490.6 MB, free: 1.656 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008328/0.2447, allocations: 47.78 kB / 490.7 MB, free: 1.637 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007087/0.2454, allocations: 224 kB / 490.9 MB, free: 1.523 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00203/0.2475, allocations: 0.7014 MB / 491.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.2487, allocations: 386.8 kB / 492 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002228/0.251, allocations: 1.584 MB / 493.6 MB, free: 440 kB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.2528, allocations: 1.042 MB / 494.6 MB, free: 15.85 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.2538, allocations: 455 kB / 495.1 MB, free: 15.68 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.2551, allocations: 0.6111 MB / 495.7 MB, free: 15.47 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.2554, allocations: 36.84 kB / 495.7 MB, free: 15.47 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001224/0.2566, allocations: 442.6 kB / 496.1 MB, free: 15.36 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006813/0.2573, allocations: 419.4 kB / 496.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009655/0.2583, allocations: 464.1 kB / 497 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001762/0.26, allocations: 1.066 MB / 498.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2601, allocations: 1.031 kB / 498.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2601, allocations: 4 kB / 498.1 MB, free: 14.76 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.293e-05/0.2602, allocations: 0 / 498.1 MB, free: 14.76 MB / 330.7 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.002938/0.2631, allocations: 1.084 MB / 499.1 MB, free: 13.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.2632, allocations: 8.594 kB / 499.2 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001448/0.2646, allocations: 210.2 kB / 499.4 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.2663, allocations: 0.6815 MB / 0.4883 GB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.195e-05/0.2664, allocations: 66.61 kB / 0.4884 GB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003036/0.2667, allocations: 100.2 kB / 0.4885 GB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/0.2688, allocations: 1.108 MB / 0.4896 GB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.33e-05/0.2688, allocations: 5.047 kB / 0.4896 GB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.271e-05/0.2689, allocations: 35.8 kB / 0.4896 GB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001716/0.2691, allocations: 67.69 kB / 0.4897 GB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.2707, allocations: 0.8868 MB / 0.4905 GB, free: 12.07 MB / 330.7 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.005609/0.2763, allocations: 4.089 MB / 0.4945 GB, free: 8.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006017/0.2769, allocations: 425.9 kB / 0.4949 GB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003779/0.2773, allocations: 261.7 kB / 0.4952 GB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.084e-05/0.2774, allocations: 8.781 kB / 0.4952 GB, free: 8.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.2774, allocations: 41.41 kB / 0.4952 GB, free: 8.293 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.916e-06/0.2774, allocations: 0 / 0.4952 GB, free: 8.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.004241/0.2817, allocations: 1.989 MB / 0.4972 GB, free: 7.109 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.2817, allocations: 83.05 kB / 0.4973 GB, free: 7.016 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006497/0.2824, allocations: 0.5658 MB / 0.4978 GB, free: 6.676 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.085e-05/0.2824, allocations: 34.98 kB / 0.4978 GB, free: 6.637 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003032/0.2827, allocations: 477.1 kB / 0.4983 GB, free: 6.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.2829, allocations: 187.1 kB / 0.4985 GB, free: 6.055 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.283, allocations: 14.66 kB / 0.4985 GB, free: 6.043 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.2831, allocations: 384.1 kB / 0.4989 GB, free: 5.676 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/0.2835, allocations: 270 kB / 0.4991 GB, free: 5.547 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005625/0.2841, allocations: 0.5 MB / 0.4996 GB, free: 5.105 MB / 330.7 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.003556/0.2877, allocations: 1.718 MB / 0.5013 GB, free: 3.965 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.2877, allocations: 4 kB / 0.5013 GB, free: 3.961 MB / 330.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002331/0.29, allocations: 1.176 MB / 0.5024 GB, free: 2.746 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.2901, allocations: 15.97 kB / 0.5024 GB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001622/0.2917, allocations: 0.8238 MB / 0.5032 GB, free: 1.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006391/0.2924, allocations: 215.2 kB / 0.5035 GB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000573/0.293, allocations: 163.7 kB / 0.5036 GB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005948/0.2989, allocations: 6.248 MB / 0.5097 GB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007379/0.2997, allocations: 47.86 kB / 0.5098 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.2998, allocations: 32 kB / 0.5098 GB, free: 10.61 MB / 346.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: infBus.V = 20000.0 * infBus.v0. 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 (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0006109/0.3004, allocations: 321.5 kB / 0.5101 GB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3006, allocations: 63.19 kB / 0.5102 GB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.3017, allocations: 0.6435 MB / 0.5108 GB, free: 9.574 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.3017, allocations: 4 kB / 0.5108 GB, free: 9.57 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.3017, allocations: 4 kB / 0.5108 GB, free: 9.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3017, allocations: 3.984 kB / 0.5108 GB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002641/0.3044, allocations: 1.526 MB / 0.5123 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.3044, allocations: 0 / 0.5123 GB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.305, allocations: 131.8 kB / 0.5124 GB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.256e-06/0.305, allocations: 4 kB / 0.5124 GB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.577e-05/0.3051, allocations: 15.98 kB / 0.5124 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.3051, allocations: 7.938 kB / 0.5124 GB, free: 7.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.3051, allocations: 4 kB / 0.5124 GB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.3064, allocations: 0.9396 MB / 0.5134 GB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.3067, allocations: 184.3 kB / 0.5135 GB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.3069, allocations: 12 kB / 0.5135 GB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003688/0.3073, allocations: 31.91 kB / 0.5136 GB, free: 6.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.51e-05/0.3073, allocations: 32.41 kB / 0.5136 GB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.208e-05/0.3074, allocations: 15.98 kB / 0.5136 GB, free: 6.543 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000516/0.3079, allocations: 411 kB / 0.514 GB, free: 6.141 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3079, allocations: 0 / 0.514 GB, free: 6.141 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009848/0.3089, allocations: 236 kB / 0.5142 GB, free: 5.91 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003184/0.3092, allocations: 135.2 kB / 0.5144 GB, free: 5.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.3111, allocations: 1.15 MB / 0.5155 GB, free: 4.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.3111, allocations: 1.438 kB / 0.5155 GB, free: 4.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004114/0.3115, allocations: 262.2 kB / 0.5157 GB, free: 4.312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.3126, allocations: 151.9 kB / 0.5159 GB, free: 4.164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003616/0.3162, allocations: 2.464 MB / 0.5183 GB, free: 1.641 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007483/0.317, allocations: 1.082 MB / 0.5194 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002608/0.3172, allocations: 59.42 kB / 0.5194 GB, free: 484 kB / 346.7 MB Notification: Performance of SimCode: time 5.61e-07/0.3172, allocations: 0 / 0.5194 GB, free: 484 kB / 346.7 MB Notification: Performance of Templates: time 0.02103/0.3383, allocations: 16.85 MB / 0.5359 GB, free: 15.61 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)