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.001352/0.001352, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.00106/0.00106, allocations: 192 kB / 18.63 MB, free: 4.375 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.458/1.458, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1814/0.1814, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.002143/0.002144, allocations: 63.91 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2556, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.008992/0.2646, allocations: 9.264 MB / 441.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004768/0.2694, allocations: 3.288 MB / 444.6 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008463/0.2703, allocations: 43.75 kB / 444.6 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.2716, allocations: 417.3 kB / 445 MB, free: 6.449 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001775/0.2733, allocations: 0.7927 MB / 445.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009451/0.2743, allocations: 481.6 kB / 446.3 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001647/0.276, allocations: 1.874 MB / 448.2 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.277, allocations: 1.112 MB / 449.3 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007587/0.2778, allocations: 0.755 MB / 450 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007578/0.2785, allocations: 0.8133 MB / 450.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.2787, allocations: 140 kB / 451 MB, free: 472 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005148/0.2792, allocations: 379.5 kB / 451.4 MB, free: 92 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004191/0.2796, allocations: 0.4909 MB / 451.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006233/0.2803, allocations: 0.7037 MB / 452.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001793/0.2821, allocations: 1.99 MB / 454.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2821, allocations: 8 kB / 454.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2821, allocations: 0 / 454.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.918e-05/0.2821, allocations: 0 / 454.6 MB, free: 12.89 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.002977/0.2851, allocations: 1.636 MB / 456.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2852, allocations: 11.89 kB / 456.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006693/0.2858, allocations: 195.1 kB / 456.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001757/0.2876, allocations: 0.95 MB / 457.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.331e-05/0.2877, allocations: 82.06 kB / 457.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002619/0.2879, allocations: 123.8 kB / 457.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.29, allocations: 1.353 MB / 458.9 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.215e-05/0.29, allocations: 3.938 kB / 458.9 MB, free: 8.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.891e-05/0.2901, allocations: 44 kB / 458.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001045/0.2902, allocations: 69.97 kB / 459 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001709/0.2919, allocations: 1.07 MB / 460.1 MB, free: 7.176 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: 8.318498358936397e-4 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006719/0.2987, allocations: 5.094 MB / 465.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.2998, allocations: 0.7709 MB / 465.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.3003, allocations: 340.2 kB / 466.3 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.499e-05/0.3004, allocations: 20.53 kB / 466.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.3004, allocations: 39.12 kB / 466.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 2.354e-06/0.3004, allocations: 4 kB / 466.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005244/0.3057, allocations: 2.662 MB / 469 MB, free: 13.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/0.3058, allocations: 141.1 kB / 469.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008962/0.3067, allocations: 0.755 MB / 469.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.811e-05/0.3067, allocations: 37.64 kB / 469.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004237/0.3072, allocations: 0.5689 MB / 470.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001795/0.3074, allocations: 256.3 kB / 470.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.3076, allocations: 158.6 kB / 470.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.3077, allocations: 350 kB / 471.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004953/0.3082, allocations: 296.7 kB / 471.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006561/0.3089, allocations: 0.549 MB / 472.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.3101, allocations: 0.8936 MB / 473 MB, free: 9.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.3101, allocations: 7.938 kB / 473 MB, free: 9.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002698/0.3128, allocations: 1.34 MB / 474.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.3128, allocations: 8 kB / 474.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3129, allocations: 8.312 kB / 474.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001331/0.3142, allocations: 420.4 kB / 474.8 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000645/0.3149, allocations: 171.8 kB / 474.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007994/0.3229, allocations: 5.277 MB / 480.2 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007157/0.3236, allocations: 39.92 kB / 480.2 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-05/0.3237, allocations: 39.98 kB / 480.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008741/0.3246, allocations: 0.5721 MB / 480.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005981/0.3252, allocations: 0.5293 MB / 481.4 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001094/0.3263, allocations: 0.8819 MB / 482.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.038e-06/0.3263, allocations: 0 / 482.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002463/0.3288, allocations: 1.262 MB / 483.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.3288, allocations: 11.94 kB / 483.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.3288, allocations: 8.312 kB / 483.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.3301, allocations: 409 kB / 483.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006169/0.3307, allocations: 167.8 kB / 484.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007084/0.3378, allocations: 5.051 MB / 489.2 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007134/0.3385, allocations: 35.98 kB / 489.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.329e-05/0.3386, allocations: 39.98 kB / 489.2 MB, free: 8.793 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002849/0.3389, allocations: 232 kB / 489.5 MB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.3391, allocations: 98.72 kB / 489.6 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001491/0.3406, allocations: 0.8714 MB / 490.4 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.3406, allocations: 8 kB / 490.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3406, allocations: 0 / 490.4 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3406, allocations: 3.984 kB / 490.4 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003174/0.3438, allocations: 1.864 MB / 492.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/0.3438, allocations: 0 / 492.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008266/0.3447, allocations: 163.8 kB / 492.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.3447, allocations: 0 / 492.5 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.278e-05/0.3447, allocations: 27.92 kB / 492.5 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.3448, allocations: 4 kB / 492.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.3448, allocations: 7.969 kB / 492.5 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.3465, allocations: 1.264 MB / 493.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003525/0.3469, allocations: 223.9 kB / 494 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.347, allocations: 23.94 kB / 494 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000447/0.3475, allocations: 23.97 kB / 494 MB, free: 3.848 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.647e-05/0.3476, allocations: 52.53 kB / 494.1 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.059e-05/0.3476, allocations: 16 kB / 494.1 MB, free: 3.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006598/0.3483, allocations: 0.5185 MB / 494.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3483, allocations: 0 / 494.6 MB, free: 3.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001648/0.3499, allocations: 468 kB / 495.1 MB, free: 2.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003005/0.3502, allocations: 143.1 kB / 495.2 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003337/0.3536, allocations: 1.903 MB / 497.1 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3536, allocations: 0 / 497.1 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.3542, allocations: 365 kB / 497.5 MB, free: 388 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.3553, allocations: 254.8 kB / 497.7 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.3591, allocations: 2.485 MB / 0.4885 GB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008305/0.3599, allocations: 1.209 MB / 0.4897 GB, free: 12.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006815/0.3606, allocations: 239.4 kB / 0.4899 GB, free: 12.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.3608, allocations: 71.42 kB / 0.49 GB, free: 12.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.833e-06/0.3609, allocations: 4 kB / 0.49 GB, free: 12.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02794/0.3888, allocations: 17.89 MB / 0.5074 GB, free: 10.18 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)