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.0008072/0.0008072, allocations: 88.84 kB / 16.31 MB, free: 6.008 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.000878/0.000878, allocations: 183.3 kB / 17.21 MB, free: 5.902 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.343/1.343, allocations: 205.4 MB / 223.4 MB, free: 5.582 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3034/0.3034, allocations: 38.05 MB / 309.7 MB, free: 8.859 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.000504/0.0005042, allocations: 12 kB / 376.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.09482, allocations: 56.33 MB / 432.8 MB, free: 6.703 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.009804/0.1047, allocations: 9.372 MB / 442.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005956/0.1107, allocations: 3.488 MB / 445.7 MB, free: 9.797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.1121, allocations: 63.62 kB / 445.8 MB, free: 9.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001155/0.1133, allocations: 290 kB / 446 MB, free: 9.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002419/0.1157, allocations: 0.7657 MB / 446.8 MB, free: 8.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.1172, allocations: 423.3 kB / 447.2 MB, free: 8.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002552/0.1198, allocations: 2.011 MB / 449.2 MB, free: 6.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.1213, allocations: 0.8762 MB / 450.1 MB, free: 5.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009943/0.1223, allocations: 0.5871 MB / 450.7 MB, free: 4.738 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.1235, allocations: 0.7316 MB / 451.4 MB, free: 4.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002525/0.1237, allocations: 56 kB / 451.5 MB, free: 3.949 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007104/0.1245, allocations: 283.5 kB / 451.8 MB, free: 3.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00045/0.1249, allocations: 406.8 kB / 452.2 MB, free: 3.273 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003197/0.1252, allocations: 269 kB / 452.4 MB, free: 3.004 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001464/0.1267, allocations: 1.516 MB / 453.9 MB, free: 1.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1267, allocations: 0 / 453.9 MB, free: 1.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1267, allocations: 0 / 453.9 MB, free: 1.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.1268, allocations: 0 / 453.9 MB, free: 1.484 MB / 382.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.002562/0.1293, allocations: 1.425 MB / 455.4 MB, free: 4 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.1778/0.3071, allocations: 13.52 kB / 455.4 MB, free: 51.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001156/0.3083, allocations: 191 kB / 455.6 MB, free: 51.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001796/0.3101, allocations: 0.8768 MB / 456.4 MB, free: 51.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.185e-05/0.3102, allocations: 78.69 kB / 456.5 MB, free: 51.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003394/0.3106, allocations: 129.3 kB / 456.6 MB, free: 51.2 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.3127, allocations: 1.333 MB / 458 MB, free: 50.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.791e-05/0.3128, allocations: 16.73 kB / 458 MB, free: 50.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.3129, allocations: 38.69 kB / 458 MB, free: 50.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-05/0.313, allocations: 73.25 kB / 458.1 MB, free: 50.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.3147, allocations: 1.071 MB / 459.2 MB, free: 50.96 MB / 382.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006764/0.3215, allocations: 5.159 MB / 464.3 MB, free: 48.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009717/0.3225, allocations: 0.7582 MB / 465.1 MB, free: 48.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/0.3229, allocations: 348.6 kB / 465.4 MB, free: 47.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.755e-05/0.323, allocations: 11.36 kB / 465.4 MB, free: 47.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.323, allocations: 43.47 kB / 465.5 MB, free: 47.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=64): time 2.364e-06/0.323, allocations: 0 / 465.5 MB, free: 47.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=71): time 0.00471/0.3277, allocations: 2.708 MB / 468.2 MB, free: 46.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.355e-05/0.3278, allocations: 135.5 kB / 468.3 MB, free: 46.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007992/0.3286, allocations: 0.7465 MB / 469.1 MB, free: 45.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.577e-05/0.3287, allocations: 44.98 kB / 469.1 MB, free: 45.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002837/0.329, allocations: 0.5643 MB / 469.7 MB, free: 45.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/0.3291, allocations: 254.7 kB / 469.9 MB, free: 45.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.855e-05/0.3292, allocations: 15.28 kB / 469.9 MB, free: 45.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.989e-05/0.3293, allocations: 345.2 kB / 470.3 MB, free: 44.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004276/0.3297, allocations: 287 kB / 470.6 MB, free: 44.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004771/0.3302, allocations: 0.552 MB / 471.1 MB, free: 44.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.3307, allocations: 391 kB / 471.5 MB, free: 44.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.3307, allocations: 3.344 kB / 471.5 MB, free: 44.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00233/0.3331, allocations: 1.36 MB / 472.9 MB, free: 43.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/0.3332, allocations: 329.9 kB / 473.2 MB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.3333, allocations: 7.641 kB / 473.2 MB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.3346, allocations: 453.8 kB / 473.6 MB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005841/0.3352, allocations: 163.5 kB / 473.8 MB, free: 43.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006517/0.3417, allocations: 4.923 MB / 478.7 MB, free: 40.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006676/0.3424, allocations: 44.11 kB / 478.8 MB, free: 40.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.854e-05/0.3425, allocations: 43.23 kB / 478.8 MB, free: 40.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.566e-06/0.3425, allocations: 3 kB / 478.8 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001912/0.3444, allocations: 1.149 MB / 480 MB, free: 39.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3444, allocations: 8.719 kB / 480 MB, free: 39.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.3455, allocations: 408.2 kB / 480.4 MB, free: 39.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005536/0.346, allocations: 161.7 kB / 480.5 MB, free: 39.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005356/0.3514, allocations: 4.618 MB / 485.1 MB, free: 36.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006966/0.3521, allocations: 36.14 kB / 485.2 MB, free: 36.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.124e-05/0.3522, allocations: 41.66 kB / 485.2 MB, free: 36.85 MB / 382.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 (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.0006035/0.3528, allocations: 443 kB / 485.6 MB, free: 36.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.353, allocations: 96.22 kB / 485.7 MB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001198/0.3542, allocations: 0.8767 MB / 486.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3542, allocations: 8.969 kB / 486.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3542, allocations: 5.391 kB / 486.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3543, allocations: 6.469 kB / 486.6 MB, free: 36.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.3566, allocations: 1.855 MB / 488.5 MB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3566, allocations: 3.531 kB / 488.5 MB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007409/0.3574, allocations: 166.2 kB / 488.7 MB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.546e-06/0.3574, allocations: 6.828 kB / 488.7 MB, free: 35.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.3575, allocations: 18.22 kB / 488.7 MB, free: 35.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.3575, allocations: 6.797 kB / 488.7 MB, free: 35.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3575, allocations: 10.31 kB / 488.7 MB, free: 35.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.3589, allocations: 1.273 MB / 490 MB, free: 34.43 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000269/0.3592, allocations: 233 kB / 490.2 MB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000106/0.3593, allocations: 21.98 kB / 490.2 MB, free: 34.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004101/0.3597, allocations: 30.78 kB / 490.3 MB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.599e-05/0.3598, allocations: 43.42 kB / 490.3 MB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.3599, allocations: 22.44 kB / 490.3 MB, free: 34.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005104/0.3604, allocations: 0.5074 MB / 490.8 MB, free: 34 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.52e-07/0.3604, allocations: 3.938 kB / 490.8 MB, free: 33.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001576/0.362, allocations: 465.8 kB / 491.3 MB, free: 33.95 MB / 382.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 (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.0002634/0.3622, allocations: 138.9 kB / 491.4 MB, free: 33.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003317/0.3656, allocations: 1.911 MB / 493.3 MB, free: 32.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.3656, allocations: 1.094 kB / 493.3 MB, free: 32.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005558/0.3662, allocations: 352 kB / 493.7 MB, free: 32.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.3674, allocations: 243.8 kB / 493.9 MB, free: 32.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.3711, allocations: 3.039 MB / 497 MB, free: 30.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/0.3717, allocations: 1.203 MB / 498.2 MB, free: 30.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008828/0.3726, allocations: 247.2 kB / 498.4 MB, free: 30.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000211/0.3728, allocations: 69.66 kB / 498.5 MB, free: 30.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.473e-06/0.3729, allocations: 0 / 498.5 MB, free: 30.14 MB / 382.1 MB Notification: Performance of Templates: time 0.02714/0.4, allocations: 16.42 MB / 0.5028 GB, free: 25.66 MB / 382.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: