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.001186/0.001186, allocations: 112.2 kB / 17.74 MB, free: 5.355 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.001335/0.001335, allocations: 187.1 kB / 18.67 MB, free: 4.434 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.353/1.353, 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.1801/0.1801, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001834/0.001834, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09643/0.09828, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008477/0.1068, allocations: 7.112 MB / 494.9 MB, free: 1.191 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007854/0.1147, allocations: 5.052 MB / 499.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008053/0.1155, allocations: 27.88 kB / 500 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.01077/0.1263, allocations: 5.701 MB / 0.4938 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.001509/0.1279, allocations: 0.5092 MB / 0.4943 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.1292, allocations: 479 kB / 0.4948 GB, free: 5.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003159/0.1324, allocations: 2.257 MB / 0.497 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.1336, allocations: 0.9236 MB / 0.4979 GB, free: 2.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009576/0.1346, allocations: 0.6111 MB / 0.4985 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009087/0.1355, allocations: 0.7162 MB / 0.4992 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001609/0.1357, allocations: 104 kB / 0.4993 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005461/0.1362, allocations: 263.7 kB / 0.4995 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004078/0.1366, allocations: 494.8 kB / 0.5 GB, free: 28 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005508/0.1372, allocations: 0.5831 MB / 0.5006 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001519/0.1387, allocations: 1.546 MB / 0.5021 GB, free: 13.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.1387, allocations: 4 kB / 0.5021 GB, free: 13.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1387, allocations: 4 kB / 0.5021 GB, free: 13.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.1388, allocations: 0 / 0.5021 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.002884/0.1417, allocations: 1.448 MB / 0.5035 GB, free: 12.38 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.1417, allocations: 15.89 kB / 0.5035 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006554/0.1424, allocations: 147.4 kB / 0.5037 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.144, allocations: 0.9133 MB / 0.5046 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.108e-05/0.1441, allocations: 66 kB / 0.5046 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.1442, allocations: 87.89 kB / 0.5047 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.146, allocations: 1.231 MB / 0.5059 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.146, allocations: 4 kB / 0.5059 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.655e-05/0.1461, allocations: 32 kB / 0.5059 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002236/0.1464, allocations: 85.94 kB / 0.506 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.1478, allocations: 1.015 MB / 0.507 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005958/0.1537, allocations: 4.893 MB / 0.5118 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000907/0.1547, allocations: 0.6529 MB / 0.5124 GB, free: 2.883 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005352/0.1552, allocations: 355.3 kB / 0.5128 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.1553, allocations: 8.562 kB / 0.5128 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006497/0.156, allocations: 453.7 kB / 0.5132 GB, free: 2.059 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.926e-06/0.156, allocations: 0 / 0.5132 GB, free: 2.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.00456/0.1605, allocations: 2.719 MB / 0.5159 GB, free: 15.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.1606, allocations: 107.4 kB / 0.516 GB, free: 15.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008515/0.1615, allocations: 0.7429 MB / 0.5167 GB, free: 14.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.496e-05/0.1615, allocations: 41.7 kB / 0.5167 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003436/0.1619, allocations: 0.4947 MB / 0.5172 GB, free: 13.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.1621, allocations: 236.6 kB / 0.5174 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.1623, allocations: 186.5 kB / 0.5176 GB, free: 13.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1625, allocations: 398.7 kB / 0.518 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000557/0.1631, allocations: 373.8 kB / 0.5184 GB, free: 12.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007837/0.1639, allocations: 0.65 MB / 0.519 GB, free: 11.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.1652, allocations: 1.057 MB / 0.52 GB, free: 10.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.1652, allocations: 4 kB / 0.52 GB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002895/0.1681, allocations: 1.631 MB / 0.5216 GB, free: 8.957 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.1682, allocations: 8 kB / 0.5216 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/0.1682, allocations: 12 kB / 0.5216 GB, free: 8.938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.1697, allocations: 481.5 kB / 0.5221 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006248/0.1703, allocations: 167.7 kB / 0.5223 GB, free: 8.297 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009222/0.1795, allocations: 7.098 MB / 0.5292 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007408/0.1803, allocations: 48.03 kB / 0.5292 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-05/0.1804, allocations: 47.98 kB / 0.5293 GB, free: 0.8125 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.0005094/0.1809, allocations: 349.4 kB / 0.5296 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001299/0.181, allocations: 82.97 kB / 0.5297 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2051/0.3862, allocations: 1.114 MB / 0.5308 GB, free: 51.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3862, allocations: 7 kB / 0.5308 GB, free: 51.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3863, allocations: 6.406 kB / 0.5308 GB, free: 51.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.3863, allocations: 2.812 kB / 0.5308 GB, free: 51.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003318/0.3896, allocations: 2.111 MB / 0.5329 GB, free: 51.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.3896, allocations: 1.375 kB / 0.5329 GB, free: 51.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007123/0.3903, allocations: 123.2 kB / 0.533 GB, free: 51.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000505/0.3909, allocations: 165.1 kB / 0.5331 GB, free: 51.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.3909, allocations: 24.39 kB / 0.5332 GB, free: 51.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003142/0.3941, allocations: 4.804 MB / 0.5378 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3941, allocations: 4.031 kB / 0.5378 GB, free: 46.95 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.3962, allocations: 1.525 MB / 0.5393 GB, free: 46.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/0.3965, allocations: 216.5 kB / 0.5395 GB, free: 46.04 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.3966, allocations: 17.22 kB / 0.5396 GB, free: 46.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004567/0.3971, allocations: 32.94 kB / 0.5396 GB, free: 46.03 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.3973, allocations: 54.42 kB / 0.5396 GB, free: 46.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.365e-05/0.3973, allocations: 23.12 kB / 0.5397 GB, free: 46.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007868/0.3981, allocations: 0.5121 MB / 0.5402 GB, free: 45.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3981, allocations: 1.594 kB / 0.5402 GB, free: 45.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001008/0.3992, allocations: 263.9 kB / 0.5404 GB, free: 45.77 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.0009031/0.4001, allocations: 429.2 kB / 0.5408 GB, free: 45.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002289/0.4024, allocations: 1.326 MB / 0.5421 GB, free: 44.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.4024, allocations: 4.859 kB / 0.5421 GB, free: 44.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.4036, allocations: 0.7855 MB / 0.5429 GB, free: 44.43 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.4046, allocations: 221.5 kB / 0.5431 GB, free: 44.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.4087, allocations: 2.744 MB / 0.5458 GB, free: 42.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.4093, allocations: 1.14 MB / 0.5469 GB, free: 42.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002587/0.4096, allocations: 78.09 kB / 0.547 GB, free: 42.09 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4096, allocations: 0 / 0.547 GB, free: 42.09 MB / 414.1 MB Notification: Performance of Templates: time 0.02447/0.4341, allocations: 22.88 MB / 0.5693 GB, free: 27.57 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)