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.001603/0.001603, allocations: 103.7 kB / 17.71 MB, free: 5.367 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.001893/0.001893, allocations: 187.7 kB / 18.64 MB, free: 4.445 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.283/1.283, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1604/0.1604, allocations: 37.98 MB / 309.9 MB, free: 5.965 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.001351/0.001351, allocations: 68.47 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.09596, allocations: 55.24 MB / 487.7 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01023/0.1062, allocations: 9.259 MB / 497 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005413/0.1117, allocations: 3.303 MB / 0.4886 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007871/0.1125, allocations: 43.75 kB / 0.4886 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001136/0.1137, allocations: 413.3 kB / 0.489 GB, free: 11.28 MB / 382.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.001807/0.1155, allocations: 0.7966 MB / 0.4898 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009388/0.1164, allocations: 479.2 kB / 0.4902 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001933/0.1184, allocations: 1.863 MB / 0.4921 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00128/0.1197, allocations: 1.124 MB / 0.4932 GB, free: 6.996 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009983/0.1207, allocations: 0.751 MB / 0.4939 GB, free: 6.242 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.1217, allocations: 0.8133 MB / 0.4947 GB, free: 5.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.1219, allocations: 140 kB / 0.4948 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006588/0.1226, allocations: 379.5 kB / 0.4952 GB, free: 4.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004616/0.1231, allocations: 0.4948 MB / 0.4957 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008868/0.1239, allocations: 0.6998 MB / 0.4964 GB, free: 3.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00211/0.1261, allocations: 1.99 MB / 0.4983 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1261, allocations: 0 / 0.4983 GB, free: 1.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1261, allocations: 0 / 0.4983 GB, free: 1.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.346e-05/0.1261, allocations: 0 / 0.4983 GB, free: 1.723 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.00295/0.1291, allocations: 1.647 MB / 0.4999 GB, free: 20 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.1291, allocations: 15.89 kB / 0.4999 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006817/0.1298, allocations: 191.3 kB / 0.5001 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.1313, allocations: 0.9577 MB / 0.501 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/0.1314, allocations: 74.06 kB / 0.5011 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002619/0.1316, allocations: 120 kB / 0.5012 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001852/0.1335, allocations: 1.352 MB / 0.5025 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/0.1335, allocations: 11.91 kB / 0.5026 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.21e-05/0.1336, allocations: 39.98 kB / 0.5026 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.1337, allocations: 69.97 kB / 0.5027 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.1354, allocations: 1.073 MB / 0.5037 GB, free: 12 MB / 398.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.006144/0.1415, allocations: 5.094 MB / 0.5087 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.1426, allocations: 0.7604 MB / 0.5094 GB, free: 5.859 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.1432, allocations: 348.1 kB / 0.5098 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.164e-05/0.1433, allocations: 4.562 kB / 0.5098 GB, free: 5.504 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.1433, allocations: 43.06 kB / 0.5098 GB, free: 5.453 MB / 398.1 MB Notification: Performance of pre-optimization done (n=64): time 2.134e-06/0.1433, allocations: 0 / 0.5098 GB, free: 5.453 MB / 398.1 MB Notification: Performance of matching and sorting (n=71): time 0.00513/0.1484, allocations: 2.674 MB / 0.5124 GB, free: 2.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.1485, allocations: 145 kB / 0.5125 GB, free: 2.512 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008557/0.1494, allocations: 0.7511 MB / 0.5133 GB, free: 1.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.775e-05/0.1494, allocations: 37.7 kB / 0.5133 GB, free: 1.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003863/0.1498, allocations: 0.5766 MB / 0.5139 GB, free: 1.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.15, allocations: 244.4 kB / 0.5141 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/0.1502, allocations: 158.6 kB / 0.5143 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.1503, allocations: 341.9 kB / 0.5146 GB, free: 392 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004687/0.1508, allocations: 300.7 kB / 0.5149 GB, free: 88 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007049/0.1515, allocations: 0.5488 MB / 0.5154 GB, free: 15.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.1527, allocations: 0.9014 MB / 0.5163 GB, free: 14.41 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.1527, allocations: 3.938 kB / 0.5163 GB, free: 14.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002582/0.1553, allocations: 1.344 MB / 0.5176 GB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1553, allocations: 12 kB / 0.5176 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.1553, allocations: 8 kB / 0.5176 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.1566, allocations: 420.8 kB / 0.518 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/0.1572, allocations: 179.7 kB / 0.5182 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007859/0.1651, allocations: 5.27 MB / 0.5233 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007915/0.1659, allocations: 39.97 kB / 0.5234 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.743e-05/0.1659, allocations: 36 kB / 0.5234 GB, free: 6.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008851/0.1668, allocations: 0.5565 MB / 0.524 GB, free: 6.387 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006013/0.1674, allocations: 0.5412 MB / 0.5245 GB, free: 5.734 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001091/0.1685, allocations: 0.8741 MB / 0.5253 GB, free: 4.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.969e-06/0.1686, allocations: 4 kB / 0.5254 GB, free: 4.746 MB / 414.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002538/0.1711, allocations: 1.262 MB / 0.5266 GB, free: 3.473 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.1711, allocations: 11.91 kB / 0.5266 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.1712, allocations: 8 kB / 0.5266 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.1724, allocations: 413.3 kB / 0.527 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006321/0.1731, allocations: 175.7 kB / 0.5272 GB, free: 2.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1895/0.3626, allocations: 5.029 MB / 0.5321 GB, free: 47.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006871/0.3633, allocations: 35.95 kB / 0.5321 GB, free: 47.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.646e-05/0.3634, allocations: 39.12 kB / 0.5321 GB, free: 47.81 MB / 414.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.0001995/0.3636, allocations: 231.3 kB / 0.5324 GB, free: 47.63 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.3637, allocations: 96.14 kB / 0.5325 GB, free: 47.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001311/0.3651, allocations: 0.8701 MB / 0.5333 GB, free: 47.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-06/0.3651, allocations: 11.81 kB / 0.5333 GB, free: 47.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3651, allocations: 2.953 kB / 0.5333 GB, free: 47.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.3651, allocations: 4.75 kB / 0.5333 GB, free: 47.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002581/0.3677, allocations: 1.858 MB / 0.5351 GB, free: 46.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3677, allocations: 1.25 kB / 0.5351 GB, free: 46.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007812/0.3685, allocations: 160.6 kB / 0.5353 GB, free: 46.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-06/0.3685, allocations: 4.984 kB / 0.5353 GB, free: 46.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.626e-05/0.3686, allocations: 24.17 kB / 0.5353 GB, free: 46.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.3686, allocations: 3.703 kB / 0.5353 GB, free: 46.97 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3686, allocations: 1.594 kB / 0.5353 GB, free: 46.97 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.3702, allocations: 1.275 MB / 0.5366 GB, free: 46.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.3704, allocations: 233.9 kB / 0.5368 GB, free: 46.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001401/0.3706, allocations: 14.12 kB / 0.5368 GB, free: 46.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006465/0.3712, allocations: 27.69 kB / 0.5368 GB, free: 46.22 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.3714, allocations: 45.48 kB / 0.5369 GB, free: 46.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-05/0.3714, allocations: 19.34 kB / 0.5369 GB, free: 46.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005868/0.372, allocations: 0.5119 MB / 0.5374 GB, free: 45.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.372, allocations: 0 / 0.5374 GB, free: 45.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001408/0.3734, allocations: 468.1 kB / 0.5378 GB, free: 45.94 MB / 414.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.0002436/0.3737, allocations: 154.4 kB / 0.538 GB, free: 45.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.3767, allocations: 1.901 MB / 0.5398 GB, free: 45.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.3768, allocations: 7.312 kB / 0.5399 GB, free: 45.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005523/0.3773, allocations: 349.6 kB / 0.5402 GB, free: 44.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001124/0.3785, allocations: 254.6 kB / 0.5404 GB, free: 44.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003757/0.3822, allocations: 2.556 MB / 0.5429 GB, free: 43.57 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006599/0.3829, allocations: 1.204 MB / 0.5441 GB, free: 42.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.3831, allocations: 74 kB / 0.5442 GB, free: 42.78 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3831, allocations: 0 / 0.5442 GB, free: 42.78 MB / 414.1 MB Notification: Performance of Templates: time 0.01994/0.4031, allocations: 17.18 MB / 0.561 GB, free: 34.59 MB / 414.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 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)