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.001093/0.001093, allocations: 110.3 kB / 17.06 MB, free: 6.004 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.000967/0.000967, allocations: 198.9 kB / 18 MB, free: 5.082 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.248/1.248, allocations: 205.1 MB / 223.9 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.164/0.164, allocations: 38 MB / 309.2 MB, free: 5.934 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.001314/0.001314, allocations: 67.89 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.0923, allocations: 55.24 MB / 487.1 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.005906/0.09825, allocations: 5.219 MB / 492.3 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004825/0.1031, allocations: 4.012 MB / 496.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.1034, allocations: 15.94 kB / 496.4 MB, free: 15.04 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.007606/0.111, allocations: 4.792 MB / 0.4894 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009639/0.112, allocations: 314.5 kB / 0.4897 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005573/0.1125, allocations: 219.6 kB / 0.4899 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.1141, allocations: 1.559 MB / 0.4914 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006072/0.1147, allocations: 0.5846 MB / 0.492 GB, free: 7.562 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003195/0.1151, allocations: 370.7 kB / 0.4924 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004467/0.1155, allocations: 410.4 kB / 0.4928 GB, free: 6.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.522e-05/0.1156, allocations: 56 kB / 0.4928 GB, free: 6.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.1158, allocations: 71.98 kB / 0.4929 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002174/0.116, allocations: 255.4 kB / 0.4931 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002874/0.1163, allocations: 326.5 kB / 0.4934 GB, free: 6.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007627/0.117, allocations: 0.8098 MB / 0.4942 GB, free: 5.289 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1171, allocations: 0 / 0.4942 GB, free: 5.289 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1171, allocations: 4 kB / 0.4942 GB, free: 5.285 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1171, allocations: 0 / 0.4942 GB, free: 5.285 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.001285/0.1184, allocations: 0.8668 MB / 0.4951 GB, free: 4.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.1184, allocations: 15.89 kB / 0.4951 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00024/0.1187, allocations: 68.19 kB / 0.4952 GB, free: 4.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000834/0.1195, allocations: 0.5645 MB / 0.4957 GB, free: 3.684 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.705e-05/0.1195, allocations: 36.98 kB / 0.4957 GB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.19e-05/0.1196, allocations: 44 kB / 0.4958 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008247/0.1205, allocations: 0.6258 MB / 0.4964 GB, free: 2.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.1205, allocations: 11.94 kB / 0.4964 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.1205, allocations: 19.98 kB / 0.4964 GB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.1206, allocations: 44.97 kB / 0.4965 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006479/0.1213, allocations: 471.6 kB / 0.4969 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.1239, allocations: 2.503 MB / 0.4994 GB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/0.1243, allocations: 281.2 kB / 0.4996 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.1244, allocations: 141.7 kB / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.1245, allocations: 0 / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.1245, allocations: 46.55 kB / 0.4998 GB, free: 15.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.233e-06/0.1245, allocations: 0 / 0.4998 GB, free: 15.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002511/0.127, allocations: 1.548 MB / 0.5013 GB, free: 13.61 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.1271, allocations: 81.11 kB / 0.5014 GB, free: 13.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003753/0.1275, allocations: 405.9 kB / 0.5018 GB, free: 13.1 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.1275, allocations: 33.69 kB / 0.5018 GB, free: 13.06 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.1277, allocations: 303.4 kB / 0.5021 GB, free: 12.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.995e-05/0.1278, allocations: 114.4 kB / 0.5022 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1279, allocations: 82.03 kB / 0.5023 GB, free: 12.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.128, allocations: 362.8 kB / 0.5026 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001909/0.1282, allocations: 128.8 kB / 0.5028 GB, free: 12.07 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002603/0.1285, allocations: 278.3 kB / 0.503 GB, free: 11.74 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.129, allocations: 453.6 kB / 0.5035 GB, free: 11.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.129, allocations: 8 kB / 0.5035 GB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009342/0.1299, allocations: 0.6755 MB / 0.5041 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.13, allocations: 4 kB / 0.5041 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.13, allocations: 8 kB / 0.5041 GB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003893/0.1304, allocations: 149.8 kB / 0.5043 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.1307, allocations: 79.89 kB / 0.5044 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002969/0.1336, allocations: 3.668 MB / 0.5079 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.1339, allocations: 19.98 kB / 0.508 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.244e-05/0.1339, allocations: 16 kB / 0.508 GB, free: 6.281 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.0002805/0.1342, allocations: 237.7 kB / 0.5082 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.554e-05/0.1343, allocations: 51.56 kB / 0.5082 GB, free: 5.988 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009355/0.1352, allocations: 0.5749 MB / 0.5088 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.1352, allocations: 8 kB / 0.5088 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0006809/0.1359, allocations: 486.3 kB / 0.5093 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1359, allocations: 0 / 0.5093 GB, free: 4.859 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.1373, allocations: 0.9977 MB / 0.5103 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1373, allocations: 0 / 0.5103 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.1375, allocations: 44 kB / 0.5103 GB, free: 3.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002506/0.1378, allocations: 92.78 kB / 0.5104 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.1378, allocations: 8 kB / 0.5104 GB, free: 3.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001819/0.1396, allocations: 2.016 MB / 0.5124 GB, free: 1.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1396, allocations: 8 kB / 0.5124 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008319/0.1405, allocations: 0.6416 MB / 0.513 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.1406, allocations: 144.5 kB / 0.5131 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.1407, allocations: 8 kB / 0.5131 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.1409, allocations: 8 kB / 0.5131 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.155e-05/0.1409, allocations: 31.84 kB / 0.5132 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.158e-05/0.141, allocations: 12 kB / 0.5132 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002851/0.1412, allocations: 299.1 kB / 0.5135 GB, free: 312 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1412, allocations: 0 / 0.5135 GB, free: 312 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.1417, allocations: 120 kB / 0.5136 GB, free: 192 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.000115/0.1419, allocations: 111.2 kB / 0.5137 GB, free: 72 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009215/0.1428, allocations: 0.6077 MB / 0.5143 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1428, allocations: 0 / 0.5143 GB, free: 15.44 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.1432, allocations: 298.5 kB / 0.5146 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006092/0.1438, allocations: 126.8 kB / 0.5147 GB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.1455, allocations: 1.12 MB / 0.5158 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004739/0.146, allocations: 0.9245 MB / 0.5167 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001971/0.1462, allocations: 72.33 kB / 0.5168 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.492e-05/0.1463, allocations: 31.44 kB / 0.5168 GB, free: 12.8 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1463, allocations: 4 kB / 0.5168 GB, free: 12.8 MB / 414.1 MB Notification: Performance of Templates: time 0.00981/0.1561, allocations: 5.798 MB / 0.5225 GB, free: 6.988 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)