Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001251, allocations: 108.9 kB / 17.06 MB, free: 6.137 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.001242/0.001242, allocations: 192 kB / 18 MB, free: 5.219 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.467/1.467, 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.1881/0.1881, allocations: 37.98 MB / 309.2 MB, free: 5.977 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.002012/0.002013, allocations: 75.89 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1031, allocations: 55.24 MB / 487.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008168/0.1113, allocations: 5.706 MB / 492.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007214/0.1186, allocations: 4.49 MB / 497.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006671/0.1193, allocations: 15.94 kB / 497.3 MB, free: 14.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.01027/0.1296, allocations: 4.886 MB / 0.4904 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1309, allocations: 434 kB / 0.4909 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007948/0.1317, allocations: 275.5 kB / 0.4911 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002113/0.1338, allocations: 1.731 MB / 0.4928 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009383/0.1347, allocations: 0.7234 MB / 0.4935 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006305/0.1354, allocations: 490.4 kB / 0.494 GB, free: 5.566 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000645/0.136, allocations: 0.4944 MB / 0.4945 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.1362, allocations: 75.98 kB / 0.4945 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002972/0.1365, allocations: 143.8 kB / 0.4947 GB, free: 4.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000286/0.1368, allocations: 319.2 kB / 0.495 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003938/0.1372, allocations: 402.2 kB / 0.4954 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.1382, allocations: 1.04 MB / 0.4964 GB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1382, allocations: 0 / 0.4964 GB, free: 3.105 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1382, allocations: 0 / 0.4964 GB, free: 3.105 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.19e-05/0.1382, allocations: 0 / 0.4964 GB, free: 3.105 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001958/0.1402, allocations: 1.017 MB / 0.4974 GB, free: 2.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.1403, allocations: 15.89 kB / 0.4974 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004608/0.1407, allocations: 108 kB / 0.4975 GB, free: 1.906 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001031/0.1418, allocations: 0.6155 MB / 0.4981 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.866e-05/0.1419, allocations: 83 kB / 0.4982 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001015/0.142, allocations: 59.94 kB / 0.4982 GB, free: 1.105 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.1432, allocations: 0.8137 MB / 0.499 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.899e-05/0.1432, allocations: 11.84 kB / 0.499 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.181e-05/0.1433, allocations: 20 kB / 0.4991 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.1434, allocations: 49.28 kB / 0.4991 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009275/0.1444, allocations: 0.5906 MB / 0.4997 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003838/0.1482, allocations: 2.919 MB / 0.5025 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007967/0.1491, allocations: 430.1 kB / 0.5029 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.1494, allocations: 226.3 kB / 0.5032 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.1494, allocations: 8.328 kB / 0.5032 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004806/0.1499, allocations: 343.6 kB / 0.5035 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.1499, allocations: 0 / 0.5035 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003092/0.153, allocations: 2.048 MB / 0.5055 GB, free: 9.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.577e-05/0.1531, allocations: 136.5 kB / 0.5056 GB, free: 9.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004724/0.1536, allocations: 453.8 kB / 0.506 GB, free: 8.703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.769e-05/0.1537, allocations: 33.7 kB / 0.5061 GB, free: 8.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002387/0.1539, allocations: 327.9 kB / 0.5064 GB, free: 8.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.154, allocations: 157.8 kB / 0.5065 GB, free: 8.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.1542, allocations: 118.2 kB / 0.5067 GB, free: 8.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.1544, allocations: 362.8 kB / 0.507 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.1547, allocations: 237.2 kB / 0.5072 GB, free: 7.465 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004569/0.1552, allocations: 389.8 kB / 0.5076 GB, free: 7.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/0.1579, allocations: 1.328 MB / 0.5089 GB, free: 5.586 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1579, allocations: 0 / 0.5089 GB, free: 5.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001668/0.1596, allocations: 0.9667 MB / 0.5098 GB, free: 4.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.001e-05/0.1596, allocations: 41.61 kB / 0.5099 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.1596, allocations: 4.344 kB / 0.5099 GB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000888/0.1605, allocations: 313.4 kB / 0.5102 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009539/0.1615, allocations: 167.8 kB / 0.5103 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006579/0.1681, allocations: 5.294 MB / 0.5155 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.1685, allocations: 23.98 kB / 0.5155 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.1685, allocations: 28.11 kB / 0.5156 GB, free: 14.45 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_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004147/0.1689, allocations: 303.6 kB / 0.5159 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.04e-05/0.169, allocations: 55.38 kB / 0.5159 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.1702, allocations: 0.8025 MB / 0.5167 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1702, allocations: 7.938 kB / 0.5167 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1702, allocations: 4 kB / 0.5167 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1702, allocations: 7.922 kB / 0.5167 GB, free: 13.2 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00228/0.1725, allocations: 1.678 MB / 0.5183 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1725, allocations: 0 / 0.5183 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.1738, allocations: 187.9 kB / 0.5185 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.174, allocations: 78.52 kB / 0.5186 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.1741, allocations: 19.94 kB / 0.5186 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003276/0.1773, allocations: 4.261 MB / 0.5228 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1774, allocations: 0 / 0.5228 GB, free: 6.426 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.1788, allocations: 1.124 MB / 0.5239 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/0.179, allocations: 172.3 kB / 0.524 GB, free: 5.031 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.825e-05/0.1791, allocations: 16 kB / 0.5241 GB, free: 5.016 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002536/0.1794, allocations: 11.98 kB / 0.5241 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.219e-05/0.1795, allocations: 43.89 kB / 0.5241 GB, free: 4.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.1795, allocations: 15.98 kB / 0.5241 GB, free: 4.945 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003752/0.1799, allocations: 311.1 kB / 0.5244 GB, free: 4.641 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1799, allocations: 0 / 0.5244 GB, free: 4.641 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007177/0.1806, allocations: 168 kB / 0.5246 GB, free: 4.477 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%), (1,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.0001786/0.1808, allocations: 119.1 kB / 0.5247 GB, free: 4.348 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.1827, allocations: 0.9834 MB / 0.5257 GB, free: 3.324 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.1827, allocations: 0 / 0.5257 GB, free: 3.324 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008343/0.1836, allocations: 0.6447 MB / 0.5263 GB, free: 2.629 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007651/0.1843, allocations: 129.8 kB / 0.5264 GB, free: 2.504 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.1873, allocations: 1.641 MB / 0.528 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2684/0.4557, allocations: 0.9846 MB / 0.529 GB, free: 51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005355/0.4563, allocations: 122.2 kB / 0.5291 GB, free: 50.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/0.4565, allocations: 39.72 kB / 0.5291 GB, free: 50.99 MB / 414.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4565, allocations: 0 / 0.5291 GB, free: 50.99 MB / 414.1 MB Notification: Performance of Templates: time 0.02155/0.4781, allocations: 8.53 MB / 0.5375 GB, free: 50.5 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)