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.001525/0.001525, allocations: 105 kB / 17.06 MB, free: 6.023 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.00154/0.00154, allocations: 195 kB / 18 MB, free: 5.109 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.546/1.546, allocations: 205.1 MB / 223.9 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.2246/0.2246, allocations: 38 MB / 309.2 MB, free: 5.945 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.001366/0.001366, allocations: 68.36 kB / 431.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1396, allocations: 55.25 MB / 487.1 MB, free: 8.469 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008086/0.1478, allocations: 5.223 MB / 492.3 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007317/0.1551, allocations: 4.016 MB / 496.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007514/0.156, allocations: 11.94 kB / 496.4 MB, free: 15.17 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.01017/0.1662, allocations: 4.784 MB / 0.4894 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.1674, allocations: 318.4 kB / 0.4897 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006499/0.1681, allocations: 215.6 kB / 0.4899 GB, free: 9.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.1701, allocations: 1.555 MB / 0.4914 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008192/0.171, allocations: 0.5924 MB / 0.492 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000498/0.1715, allocations: 370.7 kB / 0.4924 GB, free: 7.332 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005386/0.172, allocations: 406.4 kB / 0.4927 GB, free: 6.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.159e-05/0.1721, allocations: 56 kB / 0.4928 GB, free: 6.879 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001847/0.1723, allocations: 68 kB / 0.4929 GB, free: 6.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.1726, allocations: 263.3 kB / 0.4931 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003053/0.1729, allocations: 322.5 kB / 0.4934 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008732/0.1738, allocations: 0.806 MB / 0.4942 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1738, allocations: 4 kB / 0.4942 GB, free: 5.426 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1738, allocations: 0 / 0.4942 GB, free: 5.426 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1738, allocations: 0 / 0.4942 GB, free: 5.426 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.001604/0.1754, allocations: 0.8707 MB / 0.4951 GB, free: 4.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1755, allocations: 15.89 kB / 0.4951 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002622/0.1757, allocations: 72.17 kB / 0.4951 GB, free: 4.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009607/0.1767, allocations: 0.5645 MB / 0.4957 GB, free: 3.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.1767, allocations: 29 kB / 0.4957 GB, free: 3.789 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.1768, allocations: 47.98 kB / 0.4958 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008876/0.1777, allocations: 0.6297 MB / 0.4964 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.1777, allocations: 0 / 0.4964 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.742e-05/0.1778, allocations: 20 kB / 0.4964 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.1779, allocations: 52.91 kB / 0.4965 GB, free: 3.004 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006823/0.1786, allocations: 467.5 kB / 0.4969 GB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.1815, allocations: 2.51 MB / 0.4994 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.182, allocations: 277.2 kB / 0.4996 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/0.1823, allocations: 141.7 kB / 0.4998 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.1823, allocations: 4 kB / 0.4998 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.388e-05/0.1823, allocations: 38.56 kB / 0.4998 GB, free: 15.41 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.693e-06/0.1824, allocations: 0 / 0.4998 GB, free: 15.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002992/0.1854, allocations: 1.548 MB / 0.5013 GB, free: 13.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.697e-05/0.1854, allocations: 81.11 kB / 0.5014 GB, free: 13.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004992/0.1859, allocations: 406 kB / 0.5018 GB, free: 13.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.797e-05/0.186, allocations: 29.7 kB / 0.5018 GB, free: 13.21 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.1863, allocations: 307.4 kB / 0.5021 GB, free: 12.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.1864, allocations: 118.4 kB / 0.5022 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.1866, allocations: 90 kB / 0.5023 GB, free: 12.69 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1868, allocations: 358.7 kB / 0.5026 GB, free: 12.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/0.187, allocations: 128.8 kB / 0.5028 GB, free: 12.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.1872, allocations: 274.3 kB / 0.503 GB, free: 11.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005223/0.1878, allocations: 457.6 kB / 0.5035 GB, free: 11.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1878, allocations: 4 kB / 0.5035 GB, free: 11.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009854/0.1888, allocations: 0.6794 MB / 0.5041 GB, free: 10.65 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.1888, allocations: 8 kB / 0.5041 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.1888, allocations: 4 kB / 0.5041 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004358/0.1893, allocations: 153.8 kB / 0.5043 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002806/0.1895, allocations: 75.84 kB / 0.5044 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003479/0.193, allocations: 3.672 MB / 0.5079 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000229/0.1933, allocations: 12 kB / 0.5079 GB, free: 6.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.1933, allocations: 16 kB / 0.508 GB, free: 6.418 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.0003022/0.1936, allocations: 245.7 kB / 0.5082 GB, free: 6.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-05/0.1937, allocations: 43.58 kB / 0.5082 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009131/0.1946, allocations: 0.575 MB / 0.5088 GB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1947, allocations: 7.938 kB / 0.5088 GB, free: 5.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006913/0.1954, allocations: 490.3 kB / 0.5093 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.1954, allocations: 0 / 0.5093 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.1968, allocations: 0.9937 MB / 0.5102 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1969, allocations: 0 / 0.5102 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.1971, allocations: 48.02 kB / 0.5103 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000258/0.1973, allocations: 88.78 kB / 0.5104 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.1974, allocations: 11.94 kB / 0.5104 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001965/0.1993, allocations: 2.02 MB / 0.5124 GB, free: 1.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.1994, allocations: 8.094 kB / 0.5124 GB, free: 1.613 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/0.2003, allocations: 0.6415 MB / 0.513 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.2005, allocations: 144.6 kB / 0.5131 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.2005, allocations: 8 kB / 0.5131 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001778/0.2007, allocations: 11.98 kB / 0.5132 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.2008, allocations: 23.91 kB / 0.5132 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.2008, allocations: 8 kB / 0.5132 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003383/0.2012, allocations: 303.1 kB / 0.5135 GB, free: 448 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.763e-06/0.2012, allocations: 0 / 0.5135 GB, free: 448 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005429/0.2017, allocations: 123.9 kB / 0.5136 GB, free: 324 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.0001223/0.2019, allocations: 107.2 kB / 0.5137 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009785/0.2028, allocations: 0.6116 MB / 0.5143 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2029, allocations: 0 / 0.5143 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004299/0.2033, allocations: 298.5 kB / 0.5146 GB, free: 15.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006444/0.2039, allocations: 118.4 kB / 0.5147 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.2058, allocations: 1.127 MB / 0.5158 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005288/0.2064, allocations: 0.9245 MB / 0.5167 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002076/0.2066, allocations: 68.34 kB / 0.5168 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.142e-05/0.2067, allocations: 35.42 kB / 0.5168 GB, free: 12.93 MB / 414.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2067, allocations: 4 kB / 0.5168 GB, free: 12.93 MB / 414.1 MB Notification: Performance of Templates: time 0.01139/0.2181, allocations: 5.798 MB / 0.5225 GB, free: 7.117 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)