Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 109.2 kB / 17.75 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.001165/0.001165, allocations: 184.3 kB / 18.68 MB, free: 4.391 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.301/1.301, allocations: 205.1 MB / 224.6 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1893/0.1893, allocations: 37.99 MB / 309.9 MB, free: 5.941 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.002635/0.002635, allocations: 71.03 kB / 432.6 MB, free: 15.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1209, allocations: 55.24 MB / 487.8 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.009512/0.1305, allocations: 7.441 MB / 495.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007457/0.138, allocations: 4.841 MB / 0.4884 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007943/0.1388, allocations: 39.81 kB / 0.4884 GB, free: 12.08 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.009213/0.148, allocations: 4.851 MB / 0.4931 GB, free: 7.219 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.1495, allocations: 0.5013 MB / 0.4936 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.1508, allocations: 0.4953 MB / 0.4941 GB, free: 6.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003246/0.154, allocations: 2.378 MB / 0.4964 GB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.1557, allocations: 1.277 MB / 0.4977 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009317/0.1566, allocations: 0.6889 MB / 0.4983 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.1576, allocations: 0.7784 MB / 0.4991 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001832/0.1578, allocations: 124 kB / 0.4992 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003096/0.1582, allocations: 140 kB / 0.4994 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004342/0.1586, allocations: 458.8 kB / 0.4998 GB, free: 364 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005745/0.1592, allocations: 0.6143 MB / 0.5004 GB, free: 15.73 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001502/0.1607, allocations: 1.635 MB / 0.502 GB, free: 14.1 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1607, allocations: 0 / 0.502 GB, free: 14.1 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1607, allocations: 0 / 0.502 GB, free: 14.1 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.1607, allocations: 0 / 0.502 GB, free: 14.1 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002984/0.1637, allocations: 1.444 MB / 0.5034 GB, free: 12.6 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1638, allocations: 11.89 kB / 0.5034 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000402/0.1642, allocations: 131.4 kB / 0.5035 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.1661, allocations: 0.9185 MB / 0.5044 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.11e-05/0.1662, allocations: 66 kB / 0.5045 GB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/0.1664, allocations: 99.89 kB / 0.5046 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.1683, allocations: 1.222 MB / 0.5058 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.1684, allocations: 7.938 kB / 0.5058 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.837e-05/0.1685, allocations: 32 kB / 0.5058 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000218/0.1687, allocations: 73.95 kB / 0.5059 GB, free: 9.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1704, allocations: 1.007 MB / 0.5069 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006033/0.1765, allocations: 4.402 MB / 0.5112 GB, free: 4.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.1779, allocations: 0.8801 MB / 0.512 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007921/0.1787, allocations: 444 kB / 0.5125 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.337e-05/0.1788, allocations: 20.53 kB / 0.5125 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.982e-05/0.1788, allocations: 43.06 kB / 0.5125 GB, free: 2.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=70): time 4.158e-06/0.1788, allocations: 0 / 0.5125 GB, free: 2.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=72): time 0.006622/0.1855, allocations: 3.295 MB / 0.5157 GB, free: 15.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.1856, allocations: 137.1 kB / 0.5159 GB, free: 15.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008206/0.1864, allocations: 0.6922 MB / 0.5165 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.798e-05/0.1865, allocations: 41.7 kB / 0.5166 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003357/0.1868, allocations: 475.3 kB / 0.517 GB, free: 14.1 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.187, allocations: 264.1 kB / 0.5173 GB, free: 13.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002612/0.1873, allocations: 158.6 kB / 0.5174 GB, free: 13.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1874, allocations: 337.9 kB / 0.5178 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006616/0.1881, allocations: 384.6 kB / 0.5181 GB, free: 12.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007909/0.1889, allocations: 0.5822 MB / 0.5187 GB, free: 12.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008/0.1969, allocations: 2.375 MB / 0.521 GB, free: 9.809 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.581e-05/0.1969, allocations: 8 kB / 0.521 GB, free: 9.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00587/0.2028, allocations: 2.005 MB / 0.523 GB, free: 7.762 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.2029, allocations: 8 kB / 0.523 GB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/0.2029, allocations: 8 kB / 0.523 GB, free: 7.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004934/0.2078, allocations: 0.9926 MB / 0.524 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005491/0.2084, allocations: 135.8 kB / 0.5241 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2243/0.4327, allocations: 9.985 MB / 0.5339 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007447/0.4335, allocations: 40.52 kB / 0.5339 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.4336, allocations: 34.61 kB / 0.5339 GB, free: 49.09 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001014/0.4346, allocations: 0.618 MB / 0.5345 GB, free: 48.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007119/0.4354, allocations: 0.5802 MB / 0.5351 GB, free: 48.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007795/0.4432, allocations: 2.328 MB / 0.5374 GB, free: 47.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.868e-06/0.4432, allocations: 3.031 kB / 0.5374 GB, free: 47.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=108) (initialization_lambda0): time 0.005567/0.4488, allocations: 1.933 MB / 0.5393 GB, free: 47.06 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.4488, allocations: 8.812 kB / 0.5393 GB, free: 47.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/0.4489, allocations: 7.812 kB / 0.5393 GB, free: 47.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004836/0.4537, allocations: 0.9846 MB / 0.5402 GB, free: 46.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.4543, allocations: 134.2 kB / 0.5404 GB, free: 46.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/0.4694, allocations: 9.774 MB / 0.5499 GB, free: 41.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006953/0.4702, allocations: 47.19 kB / 0.55 GB, free: 41.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.544e-05/0.4703, allocations: 42.02 kB / 0.55 GB, free: 41.22 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,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 (65): * Single equations (assignments): 63 * 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 {(6,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0002485/0.4705, allocations: 229.1 kB / 0.5502 GB, free: 41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001855/0.4707, allocations: 88.28 kB / 0.5503 GB, free: 41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/0.4728, allocations: 1.248 MB / 0.5515 GB, free: 40.35 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.4728, allocations: 4 kB / 0.5515 GB, free: 40.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.4728, allocations: 1.156 kB / 0.5515 GB, free: 40.35 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003845/0.4732, allocations: 232.7 kB / 0.5517 GB, free: 40.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.4734, allocations: 17.66 kB / 0.5518 GB, free: 40.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005217/0.4739, allocations: 27.69 kB / 0.5518 GB, free: 40.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4741, allocations: 64.97 kB / 0.5518 GB, free: 40.15 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002555/0.4766, allocations: 1.352 MB / 0.5532 GB, free: 39.53 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001862/0.4785, allocations: 1.724 MB / 0.5548 GB, free: 38.64 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005509/0.4791, allocations: 429.3 kB / 0.5553 GB, free: 38.49 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005532/0.4796, allocations: 486.2 kB / 0.5557 GB, free: 38.25 MB / 414.1 MB Notification: Performance of Backend: time 4.61e-07/0.4796, allocations: 1.562 kB / 0.5557 GB, free: 38.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004623/0.4843, allocations: 2.353 MB / 0.558 GB, free: 36.74 MB / 414.1 MB Notification: Performance of SimCode: time 0.003306/0.4876, allocations: 2.799 MB / 0.5608 GB, free: 34.86 MB / 414.1 MB Notification: Performance of Templates: time 0.03286/0.5205, allocations: 26.78 MB / 0.5869 GB, free: 9.023 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)