Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001541, allocations: 100.9 kB / 17.06 MB, free: 6.145 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.001752/0.001752, allocations: 195 kB / 18 MB, free: 5.223 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.234/1.234, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1656/0.1656, allocations: 37.99 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.001345/0.001345, allocations: 68.38 kB / 431.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08732/0.08868, allocations: 55.24 MB / 487.1 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007894/0.09661, allocations: 7.112 MB / 494.2 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006794/0.1034, allocations: 5.048 MB / 499.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005342/0.104, allocations: 27.88 kB / 499.3 MB, free: 12.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.009433/0.1134, allocations: 5.704 MB / 0.4932 GB, free: 6.379 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001344/0.1148, allocations: 0.5131 MB / 0.4937 GB, free: 5.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.116, allocations: 487 kB / 0.4941 GB, free: 5.387 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.1187, allocations: 2.249 MB / 0.4963 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0012/0.1199, allocations: 0.9274 MB / 0.4972 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00106/0.121, allocations: 0.6072 MB / 0.4978 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.1221, allocations: 0.724 MB / 0.4985 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003078/0.1224, allocations: 100 kB / 0.4986 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006806/0.1231, allocations: 259.7 kB / 0.4989 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004878/0.1236, allocations: 498.8 kB / 0.4994 GB, free: 16 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007305/0.1243, allocations: 0.5792 MB / 0.4999 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001703/0.126, allocations: 1.542 MB / 0.5014 GB, free: 13.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1261, allocations: 4 kB / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1261, allocations: 0 / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.255e-05/0.1261, allocations: 0 / 0.5014 GB, free: 13.88 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003668/0.1298, allocations: 1.464 MB / 0.5029 GB, free: 12.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.1299, allocations: 11.89 kB / 0.5029 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007101/0.1306, allocations: 147.5 kB / 0.503 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.1325, allocations: 0.9055 MB / 0.5039 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.828e-05/0.1326, allocations: 73.97 kB / 0.504 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.1328, allocations: 83.91 kB / 0.504 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/0.1347, allocations: 1.227 MB / 0.5052 GB, free: 9.805 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.747e-05/0.1348, allocations: 4 kB / 0.5052 GB, free: 9.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.115e-05/0.1349, allocations: 35.98 kB / 0.5053 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002198/0.1351, allocations: 89.94 kB / 0.5054 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.1366, allocations: 1.011 MB / 0.5064 GB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00602/0.1427, allocations: 4.889 MB / 0.5111 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008737/0.1436, allocations: 0.6529 MB / 0.5118 GB, free: 2.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005167/0.1441, allocations: 355.2 kB / 0.5121 GB, free: 2.527 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.324e-05/0.1442, allocations: 16.53 kB / 0.5121 GB, free: 2.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006148/0.1448, allocations: 453.7 kB / 0.5126 GB, free: 2.047 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.625e-06/0.1448, allocations: 0 / 0.5126 GB, free: 2.047 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004185/0.149, allocations: 2.712 MB / 0.5152 GB, free: 15.2 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.149, allocations: 115.4 kB / 0.5153 GB, free: 15.06 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008021/0.1499, allocations: 0.739 MB / 0.516 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.56e-05/0.1499, allocations: 41.7 kB / 0.5161 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003096/0.1502, allocations: 0.5025 MB / 0.5166 GB, free: 13.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.1504, allocations: 232.7 kB / 0.5168 GB, free: 13.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002542/0.1507, allocations: 182.5 kB / 0.517 GB, free: 13.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.1508, allocations: 398.7 kB / 0.5173 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005283/0.1514, allocations: 373.8 kB / 0.5177 GB, free: 12.57 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006805/0.1521, allocations: 0.6577 MB / 0.5183 GB, free: 11.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.1533, allocations: 1.049 MB / 0.5194 GB, free: 10.62 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1533, allocations: 4 kB / 0.5194 GB, free: 10.62 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002666/0.156, allocations: 1.623 MB / 0.5209 GB, free: 8.961 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.156, allocations: 12 kB / 0.521 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.156, allocations: 8 kB / 0.521 GB, free: 8.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.1574, allocations: 485.8 kB / 0.5214 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005723/0.158, allocations: 171.7 kB / 0.5216 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008739/0.1668, allocations: 7.106 MB / 0.5285 GB, free: 0.8945 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005702/0.1674, allocations: 47.97 kB / 0.5286 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.108e-05/0.1674, allocations: 44 kB / 0.5286 GB, free: 0.8047 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0004496/0.1679, allocations: 357.4 kB / 0.529 GB, free: 456 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.168, allocations: 82.97 kB / 0.529 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1981/0.3662, allocations: 1.11 MB / 0.5301 GB, free: 51.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.918e-06/0.3662, allocations: 8.516 kB / 0.5301 GB, free: 51.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3662, allocations: 1.406 kB / 0.5301 GB, free: 51.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.3662, allocations: 4.297 kB / 0.5301 GB, free: 51.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003311/0.3696, allocations: 2.11 MB / 0.5322 GB, free: 51.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.3696, allocations: 3.219 kB / 0.5322 GB, free: 51.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006846/0.3703, allocations: 128.4 kB / 0.5323 GB, free: 51.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00047/0.3707, allocations: 159.8 kB / 0.5325 GB, free: 51.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-05/0.3708, allocations: 26.5 kB / 0.5325 GB, free: 51.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002985/0.3738, allocations: 4.802 MB / 0.5372 GB, free: 46.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3738, allocations: 1.469 kB / 0.5372 GB, free: 46.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.3758, allocations: 1.525 MB / 0.5387 GB, free: 46.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002678/0.3761, allocations: 213 kB / 0.5389 GB, free: 45.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.392e-05/0.3762, allocations: 23.81 kB / 0.5389 GB, free: 45.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003935/0.3766, allocations: 30 kB / 0.5389 GB, free: 45.96 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.3767, allocations: 57.27 kB / 0.539 GB, free: 45.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-05/0.3768, allocations: 22.94 kB / 0.539 GB, free: 45.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006205/0.3774, allocations: 0.5095 MB / 0.5395 GB, free: 45.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3774, allocations: 0 / 0.5395 GB, free: 45.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009683/0.3784, allocations: 263.2 kB / 0.5398 GB, free: 45.7 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * 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,3,100.0%), (2,1,100.0%), (2,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.0008562/0.3793, allocations: 418 kB / 0.5402 GB, free: 45.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.3814, allocations: 1.336 MB / 0.5415 GB, free: 44.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.3814, allocations: 1.281 kB / 0.5415 GB, free: 44.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/0.3825, allocations: 0.7805 MB / 0.5422 GB, free: 44.37 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009196/0.3834, allocations: 225.1 kB / 0.5424 GB, free: 44.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00376/0.3872, allocations: 2.672 MB / 0.5451 GB, free: 42.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006073/0.3878, allocations: 1.144 MB / 0.5462 GB, free: 42.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006099/0.3884, allocations: 236 kB / 0.5464 GB, free: 42.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.3886, allocations: 65.78 kB / 0.5465 GB, free: 42.03 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3886, allocations: 0 / 0.5465 GB, free: 42.03 MB / 414.1 MB Notification: Performance of Templates: time 0.02104/0.4097, allocations: 15.11 MB / 0.5612 GB, free: 35.19 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)