Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 111.8 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.001518/0.001518, allocations: 177.5 kB / 18.66 MB, free: 4.449 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.409/1.409, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1764/0.1764, 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.002458/0.002458, allocations: 60.23 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1125, allocations: 55.25 MB / 487.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007466/0.1201, allocations: 5.227 MB / 493 MB, free: 3.102 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006507/0.1266, allocations: 4.012 MB / 497 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006152/0.1273, allocations: 15.94 kB / 497 MB, free: 15.06 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.009796/0.1371, allocations: 4.784 MB / 0.4901 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.1382, allocations: 318.5 kB / 0.4904 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006525/0.1389, allocations: 215.6 kB / 0.4906 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002435/0.1413, allocations: 1.555 MB / 0.4921 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009565/0.1423, allocations: 0.5885 MB / 0.4927 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006615/0.143, allocations: 374.7 kB / 0.493 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007437/0.1438, allocations: 418.4 kB / 0.4934 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.1439, allocations: 56 kB / 0.4935 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.1442, allocations: 64 kB / 0.4935 GB, free: 6.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002823/0.1445, allocations: 255.3 kB / 0.4938 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004419/0.1449, allocations: 330.4 kB / 0.4941 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009912/0.1459, allocations: 0.806 MB / 0.4949 GB, free: 5.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1459, allocations: 4 kB / 0.4949 GB, free: 5.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1459, allocations: 0 / 0.4949 GB, free: 5.312 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.799e-05/0.146, allocations: 0 / 0.4949 GB, free: 5.312 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001904/0.1479, allocations: 0.8629 MB / 0.4957 GB, free: 4.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1479, allocations: 19.89 kB / 0.4957 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003304/0.1483, allocations: 68.17 kB / 0.4958 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.1494, allocations: 0.5645 MB / 0.4964 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.496e-05/0.1494, allocations: 33 kB / 0.4964 GB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.256e-05/0.1495, allocations: 43.98 kB / 0.4964 GB, free: 3.637 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009826/0.1505, allocations: 0.6336 MB / 0.497 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.1506, allocations: 3.938 kB / 0.4971 GB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.096e-05/0.1506, allocations: 23.98 kB / 0.4971 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/0.1508, allocations: 44.97 kB / 0.4971 GB, free: 2.895 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.1515, allocations: 467.6 kB / 0.4976 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003198/0.1548, allocations: 2.495 MB / 0.5 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004642/0.1552, allocations: 289.1 kB / 0.5003 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000206/0.1555, allocations: 137.7 kB / 0.5004 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.229e-05/0.1555, allocations: 7.984 kB / 0.5004 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.1556, allocations: 42.56 kB / 0.5005 GB, free: 15.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.825e-06/0.1556, allocations: 0 / 0.5005 GB, free: 15.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002997/0.1586, allocations: 1.548 MB / 0.502 GB, free: 13.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.253e-05/0.1587, allocations: 81.05 kB / 0.502 GB, free: 13.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.1591, allocations: 406 kB / 0.5024 GB, free: 13.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.1592, allocations: 37.7 kB / 0.5025 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.1594, allocations: 299.4 kB / 0.5028 GB, free: 12.79 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.1595, allocations: 114.4 kB / 0.5029 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.1596, allocations: 82.03 kB / 0.5029 GB, free: 12.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1598, allocations: 362.8 kB / 0.5033 GB, free: 12.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002095/0.16, allocations: 132.8 kB / 0.5034 GB, free: 12.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002973/0.1603, allocations: 274.3 kB / 0.5037 GB, free: 11.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005418/0.1609, allocations: 453.7 kB / 0.5041 GB, free: 11.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.345e-06/0.1609, allocations: 12 kB / 0.5041 GB, free: 11.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001134/0.162, allocations: 0.6716 MB / 0.5048 GB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.162, allocations: 8 kB / 0.5048 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.1621, allocations: 7.938 kB / 0.5048 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004759/0.1625, allocations: 149.8 kB / 0.5049 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.1629, allocations: 75.91 kB / 0.505 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003457/0.1664, allocations: 3.676 MB / 0.5086 GB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003423/0.1667, allocations: 16 kB / 0.5086 GB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.822e-05/0.1668, allocations: 16 kB / 0.5086 GB, free: 6.309 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * 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 initialization (42): * Single equations (assignments): 40 * 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): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003506/0.1671, allocations: 237.7 kB / 0.5089 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.633e-05/0.1672, allocations: 43.44 kB / 0.5089 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009753/0.1682, allocations: 0.575 MB / 0.5095 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.1682, allocations: 3.938 kB / 0.5095 GB, free: 5.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007209/0.169, allocations: 494.3 kB / 0.5099 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.169, allocations: 0 / 0.5099 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.1706, allocations: 0.9936 MB / 0.5109 GB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1706, allocations: 4 kB / 0.5109 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.1708, allocations: 40.08 kB / 0.5109 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002777/0.1711, allocations: 96.77 kB / 0.511 GB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.1711, allocations: 4 kB / 0.511 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.1731, allocations: 2.024 MB / 0.513 GB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.1732, allocations: 4.062 kB / 0.513 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009654/0.1741, allocations: 0.6455 MB / 0.5136 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.1743, allocations: 140.6 kB / 0.5138 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.1744, allocations: 11.94 kB / 0.5138 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.1746, allocations: 11.98 kB / 0.5138 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.1747, allocations: 31.92 kB / 0.5138 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.1747, allocations: 8 kB / 0.5138 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003941/0.1751, allocations: 303.1 kB / 0.5141 GB, free: 336 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1751, allocations: 0 / 0.5141 GB, free: 336 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006012/0.1758, allocations: 120 kB / 0.5142 GB, free: 216 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * 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 (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001594/0.1759, allocations: 103.2 kB / 0.5143 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.1771, allocations: 0.6193 MB / 0.515 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.1771, allocations: 0 / 0.515 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.1776, allocations: 294.6 kB / 0.5152 GB, free: 15.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007241/0.1783, allocations: 114.5 kB / 0.5153 GB, free: 15.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.1805, allocations: 1.176 MB / 0.5165 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.181, allocations: 0.9206 MB / 0.5174 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.1812, allocations: 35.44 kB / 0.5174 GB, free: 12.85 MB / 414.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1812, allocations: 0 / 0.5174 GB, free: 12.85 MB / 414.1 MB Notification: Performance of Templates: time 0.01479/0.196, allocations: 9.976 MB / 0.5272 GB, free: 2.848 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)