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.0009652/0.0009653, allocations: 96.05 kB / 16.3 MB, free: 5.535 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.0008996/0.0008996, allocations: 183.5 kB / 17.2 MB, free: 5.469 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.676/1.676, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2068/0.2068, allocations: 38.04 MB / 309.7 MB, free: 6.141 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.0005685/0.0005689, allocations: 19.12 kB / 376.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2922, allocations: 56.33 MB / 432.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.007725/0.3, allocations: 8.974 MB / 441.8 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006269/0.3063, allocations: 3.478 MB / 445.3 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.3078, allocations: 59.62 kB / 445.3 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001017/0.3089, allocations: 290.2 kB / 445.6 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002865/0.3118, allocations: 0.6853 MB / 446.3 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.3132, allocations: 418.2 kB / 446.7 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.3151, allocations: 1.015 MB / 447.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001424/0.3166, allocations: 0.8684 MB / 448.6 MB, free: 3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.3177, allocations: 0.5409 MB / 449.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008311/0.3185, allocations: 0.533 MB / 449.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3186, allocations: 56 kB / 449.7 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007044/0.3193, allocations: 279.5 kB / 450 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003536/0.3197, allocations: 374.9 kB / 450.3 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002764/0.32, allocations: 261.1 kB / 450.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.3214, allocations: 1.523 MB / 452.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3215, allocations: 0 / 452.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.736e-06/0.3215, allocations: 0 / 452.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.911e-05/0.3215, allocations: 4 kB / 452.1 MB, free: 15.43 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.003294/0.3248, allocations: 1.421 MB / 453.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3249, allocations: 12.03 kB / 453.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007661/0.3256, allocations: 190.2 kB / 453.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.3275, allocations: 0.8868 MB / 454.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.087e-05/0.3276, allocations: 78.06 kB / 454.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002797/0.3279, allocations: 131.9 kB / 454.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.3301, allocations: 1.329 MB / 456.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.986e-05/0.3302, allocations: 0 / 456.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-05/0.3303, allocations: 44 kB / 456.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.3304, allocations: 65.97 kB / 456.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001864/0.3323, allocations: 1.077 MB / 457.4 MB, free: 10.03 MB / 334.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.007722/0.34, allocations: 5.157 MB / 462.5 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.3414, allocations: 0.7645 MB / 463.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.119e-05/0.3415, allocations: 16.61 kB / 463.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.3415, allocations: 47.06 kB / 463.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 2.435e-06/0.3416, allocations: 0 / 463.3 MB, free: 3.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005931/0.3475, allocations: 2.696 MB / 466 MB, free: 0.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/0.3476, allocations: 137.1 kB / 466.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009959/0.3486, allocations: 0.7472 MB / 466.9 MB, free: 36 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.653e-05/0.3487, allocations: 37.78 kB / 466.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000476/0.3492, allocations: 0.5649 MB / 467.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.3494, allocations: 256.3 kB / 467.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.871e-05/0.3495, allocations: 20 kB / 467.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.3496, allocations: 346 kB / 468.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000486/0.3501, allocations: 285.9 kB / 468.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006837/0.3508, allocations: 0.5527 MB / 469 MB, free: 13.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006257/0.3515, allocations: 391 kB / 469.3 MB, free: 13.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.3515, allocations: 4 kB / 469.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00276/0.3542, allocations: 1.36 MB / 470.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001457/0.3557, allocations: 3.135 MB / 473.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.3557, allocations: 8 kB / 473.8 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001458/0.3572, allocations: 440.4 kB / 474.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006483/0.3579, allocations: 171.7 kB / 474.4 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008755/0.3666, allocations: 5.1 MB / 479.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/0.3678, allocations: 43.98 kB / 479.6 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.368, allocations: 39.98 kB / 479.6 MB, free: 2.785 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.042e-05/0.3681, allocations: 4 kB / 479.6 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002952/0.3711, allocations: 1.148 MB / 480.8 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.321e-05/0.3711, allocations: 8 kB / 480.8 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001371/0.3725, allocations: 397 kB / 481.2 MB, free: 1.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007445/0.3733, allocations: 171.7 kB / 481.3 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007533/0.3808, allocations: 4.784 MB / 486.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008714/0.3817, allocations: 39.98 kB / 486.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/0.3819, allocations: 39.92 kB / 486.2 MB, free: 12.06 MB / 366.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.0009137/0.3828, allocations: 436.7 kB / 486.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/0.3831, allocations: 94.83 kB / 486.7 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.3848, allocations: 0.8796 MB / 487.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.3848, allocations: 8 kB / 487.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.3849, allocations: 4 kB / 487.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.3849, allocations: 3.984 kB / 487.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003746/0.3886, allocations: 1.861 MB / 489.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/0.3887, allocations: 0 / 489.5 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008509/0.3895, allocations: 167.8 kB / 489.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-05/0.3895, allocations: 4 kB / 489.6 MB, free: 8.512 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.976e-05/0.3896, allocations: 20 kB / 489.7 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.456e-06/0.3896, allocations: 4 kB / 489.7 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3896, allocations: 0 / 489.7 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.3918, allocations: 1.318 MB / 491 MB, free: 7.129 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005207/0.3924, allocations: 239.8 kB / 491.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001898/0.3926, allocations: 19.89 kB / 491.2 MB, free: 6.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005693/0.3931, allocations: 27.98 kB / 491.3 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.495e-05/0.3932, allocations: 44.59 kB / 491.3 MB, free: 6.785 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.092e-05/0.3933, allocations: 16 kB / 491.3 MB, free: 6.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008299/0.3941, allocations: 0.5107 MB / 491.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3941, allocations: 0 / 491.8 MB, free: 6.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002102/0.3962, allocations: 468 kB / 492.3 MB, free: 5.809 MB / 366.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.0004695/0.3967, allocations: 142.2 kB / 492.4 MB, free: 5.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004418/0.4011, allocations: 1.903 MB / 494.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.4012, allocations: 0 / 494.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006422/0.4018, allocations: 357.2 kB / 494.7 MB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001241/0.4031, allocations: 227.7 kB / 494.9 MB, free: 3.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.4087, allocations: 3.057 MB / 498 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00122/0.4099, allocations: 1.224 MB / 499.2 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001014/0.4109, allocations: 243.4 kB / 499.4 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002448/0.4112, allocations: 71.41 kB / 499.5 MB, free: 14.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.031e-06/0.4112, allocations: 0 / 499.5 MB, free: 14.5 MB / 382.1 MB Notification: Performance of Templates: time 0.03258/0.4438, allocations: 16.4 MB / 0.5038 GB, free: 14.12 MB / 398.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: