Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00157/0.00157, allocations: 181.7 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001122/0.001121, allocations: 102.7 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2854/0.2854, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005069/0.0005071, allocations: 19.98 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1142, allocations: 56.31 MB / 479 MB, free: 2.047 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5281/0.6423, allocations: 122.4 MB / 0.5873 GB, free: 9.801 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/0.6427, allocations: 102.7 kB / 0.5874 GB, free: 9.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1519/0.7946, allocations: 35.55 MB / 0.6221 GB, free: 11.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.7947, allocations: 0 / 0.6221 GB, free: 11.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001186/0.7948, allocations: 31.94 kB / 0.6222 GB, free: 11.56 MB / 426.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.005202/0.8001, allocations: 1.459 MB / 0.6236 GB, free: 10.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.8001, allocations: 12.03 kB / 0.6236 GB, free: 10.11 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001068/0.8012, allocations: 158.2 kB / 0.6238 GB, free: 9.957 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004893/0.8061, allocations: 1.247 MB / 0.625 GB, free: 8.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.545e-05/0.8063, allocations: 80.11 kB / 0.6251 GB, free: 8.883 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005389/0.8068, allocations: 117.4 kB / 0.6252 GB, free: 8.801 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003633/0.8105, allocations: 1.332 MB / 0.6265 GB, free: 7.797 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.832e-05/0.8106, allocations: 4 kB / 0.6265 GB, free: 7.793 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/0.8107, allocations: 42.25 kB / 0.6265 GB, free: 7.785 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.8109, allocations: 75.58 kB / 0.6266 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003158/0.8141, allocations: 1.039 MB / 0.6276 GB, free: 7.035 MB / 426.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.01179/0.826, allocations: 5.141 MB / 0.6326 GB, free: 2.617 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.8281, allocations: 0.7303 MB / 0.6333 GB, free: 1.836 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001006/0.8282, allocations: 8.609 kB / 0.6333 GB, free: 1.828 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/0.8283, allocations: 47.06 kB / 0.6334 GB, free: 1.773 MB / 426.7 MB Notification: Performance of pre-optimization done (n=64): time 3.577e-06/0.8283, allocations: 0 / 0.6334 GB, free: 1.773 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.009686/0.838, allocations: 2.671 MB / 0.636 GB, free: 15 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.355e-05/0.8381, allocations: 115.3 kB / 0.6361 GB, free: 14.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.8395, allocations: 0.6304 MB / 0.6367 GB, free: 14.23 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002024/0.8398, allocations: 37.7 kB / 0.6368 GB, free: 14.19 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005629/0.8404, allocations: 0.5714 MB / 0.6373 GB, free: 13.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003642/0.8407, allocations: 248.2 kB / 0.6375 GB, free: 13.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.337e-05/0.8408, allocations: 20 kB / 0.6376 GB, free: 13.35 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.841, allocations: 354.8 kB / 0.6379 GB, free: 12.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009024/0.8419, allocations: 281.8 kB / 0.6382 GB, free: 12.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.843, allocations: 0.5285 MB / 0.6387 GB, free: 12.08 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.8442, allocations: 387 kB / 0.6391 GB, free: 11.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.001e-05/0.8442, allocations: 4 kB / 0.6391 GB, free: 11.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.004674/0.8489, allocations: 1.22 MB / 0.6403 GB, free: 10.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001378/0.8503, allocations: 3.135 MB / 0.6433 GB, free: 7.078 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.939e-05/0.8504, allocations: 8 kB / 0.6433 GB, free: 7.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002797/0.8532, allocations: 420.5 kB / 0.6437 GB, free: 6.656 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.8546, allocations: 163.8 kB / 0.6439 GB, free: 6.496 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.8574, allocations: 1.162 MB / 0.645 GB, free: 5.305 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.8586, allocations: 39.89 kB / 0.6451 GB, free: 5.266 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.8587, allocations: 36 kB / 0.6451 GB, free: 5.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.8587, allocations: 4 kB / 0.6451 GB, free: 5.227 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004229/0.863, allocations: 1.148 MB / 0.6462 GB, free: 4.074 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/0.8631, allocations: 12 kB / 0.6462 GB, free: 4.062 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/0.8654, allocations: 413 kB / 0.6466 GB, free: 3.656 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.8668, allocations: 167.7 kB / 0.6468 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01245/0.8792, allocations: 4.749 MB / 0.6514 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007735/0.8801, allocations: 35.91 kB / 0.6514 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.975e-05/0.8802, allocations: 39.98 kB / 0.6515 GB, free: 14.53 MB / 458.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.00103/0.8812, allocations: 436.7 kB / 0.6519 GB, free: 14.09 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003037/0.8816, allocations: 90.88 kB / 0.652 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002446/0.884, allocations: 0.864 MB / 0.6528 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.996e-05/0.8841, allocations: 15.94 kB / 0.6528 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8841, allocations: 0 / 0.6528 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.8841, allocations: 3.984 kB / 0.6529 GB, free: 13.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005227/0.8894, allocations: 1.822 MB / 0.6546 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.017e-06/0.8894, allocations: 0 / 0.6546 GB, free: 11.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001673/0.8911, allocations: 159.8 kB / 0.6548 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.597e-05/0.8911, allocations: 4 kB / 0.6548 GB, free: 11.05 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.673e-05/0.8913, allocations: 23.98 kB / 0.6548 GB, free: 11.03 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.094e-05/0.8913, allocations: 3.953 kB / 0.6548 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.8913, allocations: 4.031 kB / 0.6548 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003221/0.8945, allocations: 1.279 MB / 0.6561 GB, free: 9.695 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006152/0.8952, allocations: 223.8 kB / 0.6563 GB, free: 9.457 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002034/0.8954, allocations: 12 kB / 0.6563 GB, free: 9.445 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007682/0.8962, allocations: 27.97 kB / 0.6563 GB, free: 9.418 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.8964, allocations: 44.59 kB / 0.6564 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.454e-05/0.8964, allocations: 16 kB / 0.6564 GB, free: 9.359 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001307/0.8978, allocations: 0.4912 MB / 0.6569 GB, free: 8.871 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.8978, allocations: 0 / 0.6569 GB, free: 8.871 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003214/0.901, allocations: 433.4 kB / 0.6573 GB, free: 8.449 MB / 458.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.0005221/0.9016, allocations: 187.6 kB / 0.6574 GB, free: 8.254 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007176/0.9088, allocations: 1.58 MB / 0.659 GB, free: 6.664 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/0.9089, allocations: 4.188 kB / 0.659 GB, free: 6.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.9103, allocations: 343.6 kB / 0.6593 GB, free: 6.328 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002718/0.9131, allocations: 231.2 kB / 0.6595 GB, free: 6.105 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009962/0.9231, allocations: 3.103 MB / 0.6626 GB, free: 2.957 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00169/0.9248, allocations: 1.21 MB / 0.6638 GB, free: 1.715 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006852/0.9255, allocations: 71.38 kB / 0.6638 GB, free: 1.648 MB / 458.7 MB Notification: Performance of SimCode: time 1.032e-06/0.9255, allocations: 0 / 0.6638 GB, free: 1.648 MB / 458.7 MB Notification: Performance of Templates: time 0.04911/0.9747, allocations: 15.95 MB / 0.6794 GB, free: 1.691 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)