Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 105.7 kB / 17.06 MB, free: 6.012 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.001608/0.001608, allocations: 195 kB / 18 MB, free: 5.094 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.57/1.57, allocations: 205.1 MB / 223.9 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1746/0.1746, allocations: 38 MB / 309.2 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.001386/0.001386, allocations: 59.91 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1205, allocations: 55.24 MB / 487.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.009137/0.1297, allocations: 7.12 MB / 494.2 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00866/0.1385, allocations: 5.04 MB / 499.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007318/0.1392, allocations: 31.81 kB / 499.3 MB, free: 12.09 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.01063/0.1499, allocations: 5.701 MB / 0.4932 GB, free: 6.383 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.001811/0.1517, allocations: 0.5092 MB / 0.4937 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001295/0.153, allocations: 483 kB / 0.4941 GB, free: 5.398 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00274/0.1557, allocations: 2.257 MB / 0.4963 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001121/0.1569, allocations: 0.9196 MB / 0.4972 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000859/0.1577, allocations: 0.6111 MB / 0.4978 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008412/0.1586, allocations: 0.7201 MB / 0.4985 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.1587, allocations: 100 kB / 0.4986 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005009/0.1593, allocations: 255.8 kB / 0.4989 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004164/0.1597, allocations: 0.4987 MB / 0.4993 GB, free: 20 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005241/0.1602, allocations: 0.5755 MB / 0.4999 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001476/0.1617, allocations: 1.554 MB / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1617, allocations: 0 / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1617, allocations: 0 / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.296e-05/0.1617, allocations: 0 / 0.5014 GB, free: 13.88 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002765/0.1645, allocations: 1.456 MB / 0.5028 GB, free: 12.37 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.1646, allocations: 11.89 kB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005768/0.1651, allocations: 147.5 kB / 0.503 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.1668, allocations: 0.9094 MB / 0.5039 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.382e-05/0.1669, allocations: 58 kB / 0.5039 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/0.1671, allocations: 95.89 kB / 0.504 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.1687, allocations: 1.235 MB / 0.5052 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.1688, allocations: 7.938 kB / 0.5052 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.022e-05/0.1689, allocations: 32 kB / 0.5053 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002109/0.1691, allocations: 89.94 kB / 0.5054 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.1705, allocations: 1.003 MB / 0.5063 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006074/0.1766, allocations: 4.897 MB / 0.5111 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000897/0.1775, allocations: 0.6528 MB / 0.5118 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005722/0.1781, allocations: 359.3 kB / 0.5121 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.737e-05/0.1782, allocations: 12.55 kB / 0.5121 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006571/0.1788, allocations: 441.8 kB / 0.5125 GB, free: 2.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.174e-06/0.1788, allocations: 4 kB / 0.5125 GB, free: 2.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004344/0.1832, allocations: 2.719 MB / 0.5152 GB, free: 15.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.485e-05/0.1833, allocations: 111.4 kB / 0.5153 GB, free: 15.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009298/0.1842, allocations: 0.7429 MB / 0.516 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.1843, allocations: 37.7 kB / 0.5161 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.1846, allocations: 0.4986 MB / 0.5166 GB, free: 13.76 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000199/0.1849, allocations: 236.7 kB / 0.5168 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000254/0.1851, allocations: 182.5 kB / 0.517 GB, free: 13.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.1853, allocations: 402.7 kB / 0.5173 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00054/0.1859, allocations: 377.8 kB / 0.5177 GB, free: 12.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/0.1866, allocations: 0.65 MB / 0.5183 GB, free: 11.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.1879, allocations: 1.053 MB / 0.5194 GB, free: 10.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.1879, allocations: 4 kB / 0.5194 GB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002688/0.1906, allocations: 1.627 MB / 0.521 GB, free: 8.957 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.1906, allocations: 12 kB / 0.521 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1906, allocations: 8 kB / 0.521 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.1921, allocations: 489.3 kB / 0.5214 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.1926, allocations: 163.7 kB / 0.5216 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009035/0.2017, allocations: 7.102 MB / 0.5285 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.2024, allocations: 44.03 kB / 0.5286 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.519e-05/0.2025, allocations: 47.98 kB / 0.5286 GB, free: 0.8086 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005683/0.2031, allocations: 357.4 kB / 0.529 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.2032, allocations: 82.97 kB / 0.529 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3294/0.5326, allocations: 1.109 MB / 0.5301 GB, free: 51.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.5326, allocations: 6.469 kB / 0.5301 GB, free: 51.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.5327, allocations: 2.375 kB / 0.5301 GB, free: 51.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.5327, allocations: 8.062 kB / 0.5301 GB, free: 51.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004322/0.537, allocations: 2.115 MB / 0.5322 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.537, allocations: 1.375 kB / 0.5322 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.5378, allocations: 119.1 kB / 0.5323 GB, free: 51.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005581/0.5384, allocations: 161.2 kB / 0.5325 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.566e-05/0.5384, allocations: 27.33 kB / 0.5325 GB, free: 51.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003691/0.5421, allocations: 4.806 MB / 0.5372 GB, free: 46.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.5422, allocations: 3.109 kB / 0.5372 GB, free: 46.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.5448, allocations: 1.522 MB / 0.5387 GB, free: 46.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005174/0.5453, allocations: 217 kB / 0.5389 GB, free: 46.07 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.5454, allocations: 18.84 kB / 0.5389 GB, free: 46.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.5459, allocations: 32.88 kB / 0.5389 GB, free: 46.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.5461, allocations: 50.44 kB / 0.539 GB, free: 46.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-05/0.5461, allocations: 22.94 kB / 0.539 GB, free: 46.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0009681/0.5471, allocations: 0.5107 MB / 0.5395 GB, free: 45.83 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5471, allocations: 0 / 0.5395 GB, free: 45.83 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001417/0.5486, allocations: 265.3 kB / 0.5398 GB, free: 45.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001123/0.5497, allocations: 430.5 kB / 0.5402 GB, free: 45.52 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.5524, allocations: 1.33 MB / 0.5415 GB, free: 44.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5525, allocations: 4.766 kB / 0.5415 GB, free: 44.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.5537, allocations: 0.7787 MB / 0.5422 GB, free: 44.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.5548, allocations: 214.1 kB / 0.5424 GB, free: 44.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005245/0.5601, allocations: 2.679 MB / 0.5451 GB, free: 42.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009233/0.561, allocations: 1.143 MB / 0.5462 GB, free: 42.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008171/0.5619, allocations: 228.6 kB / 0.5464 GB, free: 42.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.5621, allocations: 69.55 kB / 0.5465 GB, free: 42.12 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5621, allocations: 0 / 0.5465 GB, free: 42.12 MB / 414.1 MB Notification: Performance of Templates: time 0.02544/0.5876, allocations: 15.11 MB / 0.5612 GB, free: 35.26 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)