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.001134/0.001134, allocations: 111.9 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.001301/0.001301, allocations: 193.5 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.3/1.3, 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.2011/0.2011, allocations: 37.99 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.001379/0.001379, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1024, allocations: 55.26 MB / 487.8 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.006959/0.1094, allocations: 5.219 MB / 493 MB, free: 3.098 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005951/0.1153, allocations: 4.016 MB / 497 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004185/0.1158, allocations: 15.94 kB / 497 MB, free: 15.05 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.008937/0.1248, allocations: 4.777 MB / 0.4901 GB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.1259, allocations: 314.5 kB / 0.4904 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006441/0.1266, allocations: 215.6 kB / 0.4906 GB, free: 9.746 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002232/0.1288, allocations: 1.563 MB / 0.4921 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009504/0.1298, allocations: 0.5846 MB / 0.4927 GB, free: 7.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006719/0.1305, allocations: 370.7 kB / 0.493 GB, free: 7.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007291/0.1312, allocations: 418.4 kB / 0.4934 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.1314, allocations: 56 kB / 0.4935 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.1316, allocations: 71.98 kB / 0.4935 GB, free: 6.691 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000246/0.1319, allocations: 251.4 kB / 0.4938 GB, free: 6.445 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003547/0.1322, allocations: 326.4 kB / 0.4941 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008246/0.1331, allocations: 0.806 MB / 0.4949 GB, free: 5.316 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1331, allocations: 3.938 kB / 0.4949 GB, free: 5.312 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1331, allocations: 4 kB / 0.4949 GB, free: 5.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.169e-05/0.1331, allocations: 4 kB / 0.4949 GB, free: 5.305 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.001719/0.1348, allocations: 0.859 MB / 0.4957 GB, free: 4.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/0.1349, allocations: 19.88 kB / 0.4957 GB, free: 4.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002906/0.1352, allocations: 68.19 kB / 0.4958 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009759/0.1362, allocations: 0.5645 MB / 0.4964 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.1362, allocations: 29 kB / 0.4964 GB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.558e-05/0.1363, allocations: 51.97 kB / 0.4964 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009173/0.1372, allocations: 0.6335 MB / 0.4971 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/0.1373, allocations: 3.938 kB / 0.4971 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.67e-05/0.1373, allocations: 19.98 kB / 0.4971 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001202/0.1374, allocations: 48.97 kB / 0.4971 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000737/0.1382, allocations: 463.6 kB / 0.4976 GB, free: 2.438 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003075/0.1413, allocations: 2.503 MB / 0.5 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004591/0.1418, allocations: 289.2 kB / 0.5003 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.142, allocations: 137.7 kB / 0.5004 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.884e-05/0.142, allocations: 4 kB / 0.5004 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/0.1421, allocations: 38.56 kB / 0.5005 GB, free: 15.3 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.765e-06/0.1421, allocations: 4 kB / 0.5005 GB, free: 15.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=32): time 0.002981/0.1451, allocations: 1.544 MB / 0.502 GB, free: 13.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.1451, allocations: 85.05 kB / 0.502 GB, free: 13.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004595/0.1456, allocations: 410 kB / 0.5024 GB, free: 13.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.1456, allocations: 33.7 kB / 0.5025 GB, free: 13.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.1459, allocations: 303.4 kB / 0.5028 GB, free: 12.78 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.146, allocations: 110.4 kB / 0.5029 GB, free: 12.67 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.1461, allocations: 82.03 kB / 0.5029 GB, free: 12.59 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1463, allocations: 362.8 kB / 0.5033 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.1465, allocations: 128.8 kB / 0.5034 GB, free: 12.1 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002995/0.1468, allocations: 278.3 kB / 0.5037 GB, free: 11.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005503/0.1474, allocations: 453.6 kB / 0.5041 GB, free: 11.26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1474, allocations: 0 / 0.5041 GB, free: 11.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001079/0.1485, allocations: 0.6794 MB / 0.5048 GB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.1485, allocations: 11.98 kB / 0.5048 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.1485, allocations: 4 kB / 0.5048 GB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004521/0.149, allocations: 149.5 kB / 0.5049 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002942/0.1493, allocations: 80.17 kB / 0.505 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003425/0.1527, allocations: 3.672 MB / 0.5086 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.153, allocations: 16 kB / 0.5086 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.153, allocations: 16 kB / 0.5086 GB, free: 6.305 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.000296/0.1533, allocations: 237.7 kB / 0.5089 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.707e-05/0.1534, allocations: 43.44 kB / 0.5089 GB, free: 6.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009597/0.1544, allocations: 0.5711 MB / 0.5094 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.324e-06/0.1544, allocations: 8 kB / 0.5095 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007309/0.1551, allocations: 494.2 kB / 0.5099 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1552, allocations: 0 / 0.5099 GB, free: 4.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001533/0.1567, allocations: 0.9975 MB / 0.5109 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.1567, allocations: 7.938 kB / 0.5109 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.1569, allocations: 31.98 kB / 0.5109 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002677/0.1572, allocations: 96.86 kB / 0.511 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.1572, allocations: 11.98 kB / 0.511 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001912/0.1592, allocations: 2.008 MB / 0.513 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.1592, allocations: 7.969 kB / 0.513 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008597/0.16, allocations: 0.6533 MB / 0.5137 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.1602, allocations: 136.6 kB / 0.5138 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.1603, allocations: 8.062 kB / 0.5138 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.1605, allocations: 11.98 kB / 0.5138 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.984e-05/0.1605, allocations: 27.84 kB / 0.5138 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.1605, allocations: 12 kB / 0.5138 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000321/0.1609, allocations: 303.1 kB / 0.5141 GB, free: 336 kB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1609, allocations: 0 / 0.5141 GB, free: 336 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.1614, allocations: 116 kB / 0.5142 GB, free: 220 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.0001129/0.1615, allocations: 107.2 kB / 0.5143 GB, free: 104 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009747/0.1625, allocations: 0.6159 MB / 0.5149 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.1625, allocations: 3.938 kB / 0.5149 GB, free: 15.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004183/0.1629, 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.0006352/0.1636, allocations: 126.4 kB / 0.5153 GB, free: 15.04 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.1655, allocations: 1.172 MB / 0.5165 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005242/0.1661, 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 9.668e-05/0.1662, allocations: 35.44 kB / 0.5174 GB, free: 12.84 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1662, allocations: 0 / 0.5174 GB, free: 12.84 MB / 414.1 MB Notification: Performance of Templates: time 0.01355/0.1797, allocations: 10.05 MB / 0.5272 GB, free: 2.766 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)