Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 107 kB / 17.74 MB, free: 5.359 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.001829/0.001829, allocations: 186.4 kB / 18.67 MB, free: 4.438 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.367/1.367, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2338/0.2338, allocations: 37.99 MB / 309.9 MB, free: 5.953 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.001396/0.001396, allocations: 71.89 kB / 432.6 MB, free: 15.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09244, allocations: 55.24 MB / 487.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.009842/0.1023, allocations: 7.546 MB / 495.3 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008219/0.1106, allocations: 5.091 MB / 0.4887 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008491/0.1114, allocations: 35.81 kB / 0.4887 GB, free: 11.74 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.0104/0.1219, allocations: 5.595 MB / 0.4942 GB, free: 6.137 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001583/0.1235, allocations: 0.5401 MB / 0.4947 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1249, allocations: 0.5615 MB / 0.4953 GB, free: 5.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003377/0.1283, allocations: 2.589 MB / 0.4978 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00189/0.1302, allocations: 1.296 MB / 0.4991 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001232/0.1315, allocations: 0.72 MB / 0.4998 GB, free: 404 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.1328, allocations: 0.8485 MB / 0.5006 GB, free: 15.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003257/0.1331, allocations: 144 kB / 0.5007 GB, free: 15.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005721/0.1337, allocations: 219.9 kB / 0.5009 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005787/0.1343, allocations: 0.5221 MB / 0.5015 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001034/0.1353, allocations: 0.7036 MB / 0.5021 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002118/0.1375, allocations: 1.9 MB / 0.504 GB, free: 12.05 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1375, allocations: 0 / 0.504 GB, free: 12.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1375, allocations: 0 / 0.504 GB, free: 12.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.584e-05/0.1376, allocations: 0 / 0.504 GB, free: 12.05 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.004495/0.1421, allocations: 1.705 MB / 0.5057 GB, free: 10.29 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1421, allocations: 11.89 kB / 0.5057 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000534/0.1427, allocations: 151.2 kB / 0.5058 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002613/0.1453, allocations: 1.097 MB / 0.5069 GB, free: 8.992 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.676e-05/0.1453, allocations: 69.98 kB / 0.507 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002277/0.1456, allocations: 88 kB / 0.507 GB, free: 8.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002202/0.1478, allocations: 1.335 MB / 0.5083 GB, free: 7.449 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.1478, allocations: 3.906 kB / 0.5084 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.148, allocations: 35.98 kB / 0.5084 GB, free: 7.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003391/0.1483, allocations: 93.92 kB / 0.5085 GB, free: 7.316 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.1503, allocations: 1.144 MB / 0.5096 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007363/0.1577, allocations: 4.904 MB / 0.5144 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.1591, allocations: 0.9464 MB / 0.5153 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008571/0.16, allocations: 0.5278 MB / 0.5158 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.58e-05/0.16, allocations: 12.56 kB / 0.5158 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009401/0.161, allocations: 0.6255 MB / 0.5164 GB, free: 14.91 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 3.356e-06/0.161, allocations: 4 kB / 0.5164 GB, free: 14.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=81): time 0.00907/0.1701, allocations: 4.148 MB / 0.5205 GB, free: 10.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.999e-05/0.1702, allocations: 170.9 kB / 0.5207 GB, free: 10.39 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/0.1715, allocations: 0.8415 MB / 0.5215 GB, free: 9.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.1715, allocations: 45.64 kB / 0.5215 GB, free: 9.469 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004119/0.172, allocations: 0.5268 MB / 0.522 GB, free: 8.934 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.1722, allocations: 287.8 kB / 0.5223 GB, free: 8.648 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003204/0.1726, allocations: 190.4 kB / 0.5225 GB, free: 8.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1727, allocations: 345.9 kB / 0.5228 GB, free: 8.109 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008217/0.1736, allocations: 492.6 kB / 0.5233 GB, free: 7.625 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/0.1746, allocations: 0.713 MB / 0.524 GB, free: 6.812 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.1765, allocations: 1.222 MB / 0.5252 GB, free: 5.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1765, allocations: 0 / 0.5252 GB, free: 5.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.009473/0.186, allocations: 2.899 MB / 0.528 GB, free: 2.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/0.186, allocations: 12.06 kB / 0.528 GB, free: 2.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/0.186, allocations: 4.312 kB / 0.528 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009167/0.1952, allocations: 1.888 MB / 0.5299 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000749/0.196, allocations: 135.8 kB / 0.53 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2221/0.4181, allocations: 12.53 MB / 0.5422 GB, free: 45.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008943/0.419, allocations: 56.47 kB / 0.5423 GB, free: 45.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.4191, allocations: 54 kB / 0.5423 GB, free: 45.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001326/0.4204, allocations: 0.7486 MB / 0.5431 GB, free: 45.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009034/0.4214, allocations: 0.7009 MB / 0.5438 GB, free: 44.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001487/0.4229, allocations: 1.199 MB / 0.5449 GB, free: 44.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.538e-06/0.4229, allocations: 4.188 kB / 0.5449 GB, free: 44.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008694/0.4316, allocations: 2.828 MB / 0.5477 GB, free: 43.33 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.4316, allocations: 7.625 kB / 0.5477 GB, free: 43.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.4316, allocations: 10.38 kB / 0.5477 GB, free: 43.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008391/0.44, allocations: 1.863 MB / 0.5495 GB, free: 43.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/0.4407, allocations: 138.6 kB / 0.5497 GB, free: 43.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/0.4593, allocations: 12.3 MB / 0.5617 GB, free: 35.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009207/0.4603, allocations: 44.66 kB / 0.5617 GB, free: 35.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.4604, allocations: 49.83 kB / 0.5618 GB, free: 35.26 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0003045/0.4608, allocations: 231.8 kB / 0.562 GB, free: 35.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001968/0.461, allocations: 115.5 kB / 0.5621 GB, free: 34.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/0.4636, allocations: 1.646 MB / 0.5637 GB, free: 33.35 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.4637, allocations: 11.27 kB / 0.5637 GB, free: 33.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.4637, allocations: 3.984 kB / 0.5637 GB, free: 33.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000451/0.4641, allocations: 259.7 kB / 0.564 GB, free: 33.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.4643, allocations: 33.23 kB / 0.564 GB, free: 33.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006111/0.4649, allocations: 43.95 kB / 0.564 GB, free: 32.99 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.4651, allocations: 72.83 kB / 0.5641 GB, free: 32.92 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003242/0.4684, allocations: 1.717 MB / 0.5658 GB, free: 31.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002183/0.4706, allocations: 2.035 MB / 0.5678 GB, free: 29.15 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006121/0.4712, allocations: 0.527 MB / 0.5683 GB, free: 28.62 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000651/0.4718, allocations: 0.5739 MB / 0.5689 GB, free: 28.03 MB / 414.1 MB Notification: Performance of Backend: time 6.61e-07/0.4718, allocations: 0 / 0.5689 GB, free: 28.03 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006686/0.4785, allocations: 3.255 MB / 0.572 GB, free: 24.77 MB / 414.1 MB Notification: Performance of SimCode: time 0.003765/0.4823, allocations: 3.306 MB / 0.5753 GB, free: 21.44 MB / 414.1 MB Notification: Performance of Templates: time 0.04818/0.5305, allocations: 35.07 MB / 0.6095 GB, free: 2.332 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)