Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001341/0.001341, allocations: 173.5 kB / 16.76 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.676/2.676, allocations: 205.4 MB / 222.9 MB, free: 8.949 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.001422/0.001422, allocations: 92.75 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.4182/0.4182, allocations: 38.06 MB / 357.6 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007361/0.0007363, allocations: 15.94 kB / 423.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5572/0.558, allocations: 56.32 MB / 480.3 MB, free: 9.227 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2457/0.8038, allocations: 122.4 MB / 0.5886 GB, free: 11.89 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004259/0.8043, allocations: 99.95 kB / 0.5887 GB, free: 11.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1027/0.907, allocations: 35.38 MB / 0.6232 GB, free: 8.039 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.9071, allocations: 3.938 kB / 0.6232 GB, free: 8.035 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.485e-05/0.9071, allocations: 28 kB / 0.6233 GB, free: 8.008 MB / 458.7 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.003458/0.9106, allocations: 1.451 MB / 0.6247 GB, free: 6.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.9107, allocations: 8.031 kB / 0.6247 GB, free: 6.492 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005943/0.9113, allocations: 163.1 kB / 0.6248 GB, free: 6.332 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00242/0.9137, allocations: 1.075 MB / 0.6259 GB, free: 5.215 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.985e-05/0.9138, allocations: 86.42 kB / 0.626 GB, free: 5.129 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002959/0.9141, allocations: 124.6 kB / 0.6261 GB, free: 5.008 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/0.9166, allocations: 1.336 MB / 0.6274 GB, free: 3.582 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.838e-05/0.9166, allocations: 0 / 0.6274 GB, free: 3.582 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001118/0.9167, allocations: 44 kB / 0.6274 GB, free: 3.539 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.9169, allocations: 69.97 kB / 0.6275 GB, free: 3.469 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.9188, allocations: 1.046 MB / 0.6285 GB, free: 2.426 MB / 458.7 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.008088/0.9269, allocations: 5.137 MB / 0.6335 GB, free: 13.04 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.9282, allocations: 0.7344 MB / 0.6343 GB, free: 12.26 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005347/0.9288, allocations: 340.1 kB / 0.6346 GB, free: 11.92 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-05/0.9289, allocations: 8.562 kB / 0.6346 GB, free: 11.91 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.9289, allocations: 39.12 kB / 0.6346 GB, free: 11.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=64): time 3.878e-06/0.9289, allocations: 0 / 0.6346 GB, free: 11.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=71): time 0.005768/0.9347, allocations: 2.668 MB / 0.6372 GB, free: 9.102 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.9348, allocations: 111.4 kB / 0.6373 GB, free: 8.965 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009933/0.9358, allocations: 0.7237 MB / 0.638 GB, free: 8.23 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.9359, allocations: 45.77 kB / 0.6381 GB, free: 8.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004804/0.9364, allocations: 0.5572 MB / 0.6386 GB, free: 7.613 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.9366, allocations: 260.3 kB / 0.6389 GB, free: 7.355 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.994e-05/0.9367, allocations: 16 kB / 0.6389 GB, free: 7.34 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.9368, allocations: 345.9 kB / 0.6392 GB, free: 6.996 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004956/0.9373, allocations: 273.9 kB / 0.6395 GB, free: 6.73 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006853/0.938, allocations: 0.5402 MB / 0.64 GB, free: 6.078 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001284/0.9393, allocations: 0.8818 MB / 0.6409 GB, free: 5.086 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.9393, allocations: 4 kB / 0.6409 GB, free: 5.082 MB / 474.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002955/0.9423, allocations: 1.285 MB / 0.6421 GB, free: 3.785 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002659/0.9426, allocations: 329.9 kB / 0.6424 GB, free: 3.348 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.9426, allocations: 15.98 kB / 0.6425 GB, free: 3.332 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/0.9441, allocations: 416.5 kB / 0.6429 GB, free: 2.922 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000699/0.9448, allocations: 171.7 kB / 0.643 GB, free: 2.754 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3093/1.254, allocations: 4.711 MB / 0.6476 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008925/1.255, allocations: 36.55 kB / 0.6477 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/1.255, allocations: 35.69 kB / 0.6477 GB, free: 127.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/1.255, allocations: 10.56 kB / 0.6477 GB, free: 127.1 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002851/1.258, allocations: 1.146 MB / 0.6488 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/1.258, allocations: 8.047 kB / 0.6488 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/1.26, allocations: 401.4 kB / 0.6492 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006912/1.26, allocations: 174.6 kB / 0.6494 GB, free: 127 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007352/1.268, allocations: 4.625 MB / 0.6539 GB, free: 125.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008592/1.269, allocations: 37.69 kB / 0.6539 GB, free: 125.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.225e-05/1.269, allocations: 37.88 kB / 0.654 GB, free: 125.7 MB / 474.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0008699/1.269, allocations: 440.3 kB / 0.6544 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001853/1.27, allocations: 95.64 kB / 0.6545 GB, free: 125.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001743/1.271, allocations: 0.8633 MB / 0.6553 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/1.271, allocations: 10.91 kB / 0.6553 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.271, allocations: 3.906 kB / 0.6553 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/1.272, allocations: 4.984 kB / 0.6553 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003564/1.275, allocations: 1.818 MB / 0.6571 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/1.275, allocations: 1.312 kB / 0.6571 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008738/1.276, allocations: 157.7 kB / 0.6573 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/1.276, allocations: 6.375 kB / 0.6573 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.624e-05/1.276, allocations: 19.75 kB / 0.6573 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.328e-05/1.276, allocations: 4.047 kB / 0.6573 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/1.276, allocations: 3.203 kB / 0.6573 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/1.278, allocations: 1.249 MB / 0.6585 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003719/1.279, allocations: 217.2 kB / 0.6587 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/1.279, allocations: 16.95 kB / 0.6587 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/1.279, allocations: 20.08 kB / 0.6588 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/1.279, allocations: 45.48 kB / 0.6588 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.282e-05/1.279, allocations: 23.86 kB / 0.6588 GB, free: 124.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0008202/1.28, allocations: 0.4986 MB / 0.6593 GB, free: 124.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.28, allocations: 0 / 0.6593 GB, free: 124.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002058/1.282, allocations: 457.5 kB / 0.6598 GB, free: 124.5 MB / 474.7 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 (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.0003823/1.283, allocations: 183.9 kB / 0.6599 GB, free: 124.4 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003935/1.286, allocations: 1.848 MB / 0.6617 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.286, allocations: 0 / 0.6617 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006857/1.287, allocations: 347.4 kB / 0.6621 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001569/1.289, allocations: 233.1 kB / 0.6623 GB, free: 124 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005377/1.294, allocations: 3.104 MB / 0.6653 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00115/1.295, allocations: 1.199 MB / 0.6665 GB, free: 121.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003578/1.296, allocations: 72.36 kB / 0.6666 GB, free: 121.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.322e-06/1.296, allocations: 0 / 0.6666 GB, free: 121.6 MB / 474.7 MB Notification: Performance of Templates: time 0.03329/1.329, allocations: 16.76 MB / 0.6829 GB, free: 120.3 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)