Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001745/0.001745, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.255/1.255, allocations: 194.2 MB / 212.2 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001649/0.001649, allocations: 115.7 kB / 256.6 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1661/0.1661, allocations: 37.94 MB / 338.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09017/0.09131, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007412/0.09875, allocations: 8.305 MB / 462.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007408/0.1062, allocations: 5.232 MB / 467.5 MB, free: 2.965 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.1073, allocations: 55.69 kB / 467.6 MB, free: 2.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007889/0.1152, allocations: 4.758 MB / 472.3 MB, free: 14.14 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001727/0.117, allocations: 477.8 kB / 472.8 MB, free: 13.67 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.1182, allocations: 438.7 kB / 473.2 MB, free: 13.25 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003521/0.1217, allocations: 2.998 MB / 476.2 MB, free: 10.24 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001326/0.1231, allocations: 0.9946 MB / 477.2 MB, free: 9.223 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009113/0.124, allocations: 0.5679 MB / 477.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.1252, allocations: 0.7745 MB / 478.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001672/0.1253, allocations: 64 kB / 478.6 MB, free: 7.812 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003357/0.1257, allocations: 87.92 kB / 478.7 MB, free: 7.727 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005224/0.1262, allocations: 394.8 kB / 479.1 MB, free: 7.34 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007904/0.127, allocations: 0.5402 MB / 479.7 MB, free: 6.797 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.129, allocations: 1.507 MB / 481.2 MB, free: 5.285 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.129, allocations: 8 kB / 481.2 MB, free: 5.277 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.129, allocations: 0 / 481.2 MB, free: 5.277 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.478e-05/0.1291, allocations: 4 kB / 481.2 MB, free: 5.273 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.003327/0.1324, allocations: 1.401 MB / 482.6 MB, free: 3.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1325, allocations: 8.031 kB / 482.6 MB, free: 3.812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004163/0.1329, allocations: 131.5 kB / 482.7 MB, free: 3.684 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.1347, allocations: 0.8552 MB / 483.6 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.1347, allocations: 66 kB / 483.6 MB, free: 2.719 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.1349, allocations: 91.89 kB / 483.7 MB, free: 2.629 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/0.1367, allocations: 1.185 MB / 484.9 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.11e-05/0.1368, allocations: 4 kB / 484.9 MB, free: 1.391 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.534e-05/0.1369, allocations: 35.98 kB / 484.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002254/0.1371, allocations: 73.95 kB / 485 MB, free: 1.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.1388, allocations: 0.9836 MB / 486 MB, free: 304 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006281/0.1451, allocations: 4.21 MB / 490.2 MB, free: 11.94 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001292/0.1465, allocations: 0.8722 MB / 491.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006678/0.1471, allocations: 432.1 kB / 491.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.912e-05/0.1472, allocations: 8.562 kB / 491.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/0.1473, allocations: 55 kB / 491.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 2.635e-06/0.1473, allocations: 0 / 491.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=72): time 0.005929/0.1532, allocations: 3.638 MB / 495.2 MB, free: 6.688 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1534, allocations: 145 kB / 495.3 MB, free: 6.516 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000874/0.1542, allocations: 0.6528 MB / 496 MB, free: 5.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.989e-05/0.1543, allocations: 41.7 kB / 496 MB, free: 5.809 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003468/0.1547, allocations: 459.4 kB / 496.5 MB, free: 5.352 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.1549, allocations: 264.2 kB / 496.7 MB, free: 5.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.1552, allocations: 158.5 kB / 496.9 MB, free: 4.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.1554, allocations: 390.8 kB / 497.3 MB, free: 4.539 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006037/0.156, allocations: 380.6 kB / 497.7 MB, free: 4.164 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007454/0.1567, allocations: 0.5726 MB / 498.2 MB, free: 3.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007439/0.1642, allocations: 2.331 MB / 0.4888 GB, free: 1.066 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.1642, allocations: 3.984 kB / 0.4888 GB, free: 1.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.005759/0.17, allocations: 1.989 MB / 0.4908 GB, free: 15.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.1701, allocations: 8 kB / 0.4908 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.38e-05/0.1701, allocations: 8 kB / 0.4908 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004642/0.1747, allocations: 0.9927 MB / 0.4918 GB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005395/0.1753, allocations: 131.7 kB / 0.4919 GB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/0.1899, allocations: 9.124 MB / 0.5008 GB, free: 4.492 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008053/0.1907, allocations: 43.98 kB / 0.5008 GB, free: 4.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.982e-05/0.1908, allocations: 35.92 kB / 0.5009 GB, free: 4.414 MB / 362.7 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_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001111/0.1919, allocations: 0.6151 MB / 0.5015 GB, free: 3.793 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007154/0.1926, allocations: 0.5532 MB / 0.502 GB, free: 3.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007245/0.1999, allocations: 2.307 MB / 0.5043 GB, free: 0.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.038e-05/0.1999, allocations: 4 kB / 0.5043 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of matching and sorting (n=106) (initialization_lambda0): time 0.241/0.441, allocations: 1.909 MB / 0.5061 GB, free: 66.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.441, allocations: 13.56 kB / 0.5061 GB, free: 66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.441, allocations: 6.422 kB / 0.5062 GB, free: 66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004768/0.4458, allocations: 0.9786 MB / 0.5071 GB, free: 65.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006332/0.4465, allocations: 126.3 kB / 0.5072 GB, free: 65.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01598/0.4625, allocations: 8.939 MB / 0.516 GB, free: 61.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009339/0.4634, allocations: 32.44 kB / 0.516 GB, free: 61.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.083e-05/0.4635, allocations: 41.94 kB / 0.516 GB, free: 61.15 MB / 362.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (63): * Single equations (assignments): 61 * 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,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0002245/0.4637, allocations: 232.2 kB / 0.5162 GB, free: 60.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.4639, allocations: 85.16 kB / 0.5163 GB, free: 60.93 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.4658, allocations: 1.24 MB / 0.5175 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.4658, allocations: 11.06 kB / 0.5176 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4658, allocations: 1.094 kB / 0.5176 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4659, allocations: 7.109 kB / 0.5176 GB, free: 60.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003864/0.4697, allocations: 2.378 MB / 0.5199 GB, free: 59.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.4697, allocations: 1.031 kB / 0.5199 GB, free: 59.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008489/0.4706, allocations: 159.9 kB / 0.52 GB, free: 59.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005578/0.4712, allocations: 153.1 kB / 0.5202 GB, free: 58.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.148e-05/0.4712, allocations: 23.11 kB / 0.5202 GB, free: 58.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003193/0.4744, allocations: 5.396 MB / 0.5255 GB, free: 53.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4745, allocations: 1.375 kB / 0.5255 GB, free: 53.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0208/0.4953, allocations: 16.39 MB / 0.5415 GB, free: 40.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/0.4956, allocations: 231.9 kB / 0.5417 GB, free: 39.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.646e-05/0.4957, allocations: 16 kB / 0.5417 GB, free: 39.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.4962, allocations: 31.8 kB / 0.5418 GB, free: 39.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/0.4964, allocations: 60.61 kB / 0.5418 GB, free: 39.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.996e-05/0.4964, allocations: 23.98 kB / 0.5418 GB, free: 39.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005103/0.4969, allocations: 471.1 kB / 0.5423 GB, free: 39.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4969, allocations: 0 / 0.5423 GB, free: 39.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002009/0.499, allocations: 0.6641 MB / 0.5429 GB, free: 38.54 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.phi_el,asm_ctrl.motor.w_el,asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,PI_i_q.I.y) * 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 (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (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.0001401/0.4991, allocations: 133.4 kB / 0.5431 GB, free: 38.42 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003979/0.5031, allocations: 2.507 MB / 0.5455 GB, free: 35.87 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5031, allocations: 0 / 0.5455 GB, free: 35.87 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009573/0.5041, allocations: 0.9089 MB / 0.5464 GB, free: 34.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.5051, allocations: 228.3 kB / 0.5466 GB, free: 34.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004071/0.5092, allocations: 3.776 MB / 0.5503 GB, free: 30.86 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005626/0.5098, allocations: 1.198 MB / 0.5515 GB, free: 29.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0008183/0.5106, allocations: 226.9 kB / 0.5517 GB, free: 29.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/0.5109, allocations: 79.41 kB / 0.5518 GB, free: 29.33 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5109, allocations: 3.719 kB / 0.5518 GB, free: 29.33 MB / 362.7 MB Notification: Performance of Templates: time 0.03209/0.543, allocations: 28.85 MB / 0.5799 GB, free: 484 kB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1)