Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.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,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009985/0.0009985, allocations: 88.16 kB / 16.31 MB, free: 5.629 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.001119/0.001119, allocations: 181.3 kB / 17.21 MB, free: 5.547 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.41/1.41, allocations: 205.4 MB / 223.4 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2952/0.2952, allocations: 38.06 MB / 309.7 MB, free: 8.793 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.0004769/0.000477, allocations: 19.98 kB / 376.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1013, allocations: 56.33 MB / 432.9 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.008868/0.1102, allocations: 7.741 MB / 440.6 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008365/0.1186, allocations: 5.204 MB / 445.8 MB, free: 9.723 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008765/0.1195, allocations: 51.62 kB / 445.8 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.13, allocations: 5.354 MB / 451.2 MB, free: 4.309 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002295/0.1323, allocations: 0.7078 MB / 451.9 MB, free: 3.598 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001423/0.1337, allocations: 451.3 kB / 452.3 MB, free: 3.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004483/0.1382, allocations: 2.935 MB / 455.3 MB, free: 220 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1866/0.3249, allocations: 1.233 MB / 456.5 MB, free: 38.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.326, allocations: 0.6398 MB / 457.2 MB, free: 38.03 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009914/0.327, allocations: 0.8811 MB / 458 MB, free: 38.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001447/0.3271, allocations: 63.28 kB / 458.1 MB, free: 38.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009339/0.3281, allocations: 0.5761 MB / 458.7 MB, free: 38.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004939/0.3286, allocations: 0.5668 MB / 459.2 MB, free: 38.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.3289, allocations: 278 kB / 459.5 MB, free: 38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.3302, allocations: 1.691 MB / 461.2 MB, free: 37.94 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3302, allocations: 0 / 461.2 MB, free: 37.94 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3302, allocations: 1.188 kB / 461.2 MB, free: 37.94 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.294e-05/0.3302, allocations: 2.344 kB / 461.2 MB, free: 37.94 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.002813/0.333, allocations: 1.7 MB / 462.9 MB, free: 37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.3331, allocations: 10 kB / 462.9 MB, free: 37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005522/0.3336, allocations: 175.6 kB / 463.1 MB, free: 36.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001424/0.3351, allocations: 0.9863 MB / 464.1 MB, free: 36.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.3352, allocations: 179.6 kB / 464.3 MB, free: 36.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/0.3354, allocations: 116.2 kB / 464.4 MB, free: 36.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.3382, allocations: 1.88 MB / 466.2 MB, free: 36.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.3382, allocations: 6.734 kB / 466.3 MB, free: 36.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.3383, allocations: 39.34 kB / 466.3 MB, free: 36.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002494/0.3386, allocations: 130.2 kB / 466.4 MB, free: 36.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002374/0.341, allocations: 1.621 MB / 468 MB, free: 36.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006691/0.3477, allocations: 5.759 MB / 473.8 MB, free: 34.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/0.3498, allocations: 1.241 MB / 475 MB, free: 34.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001235/0.351, allocations: 0.7657 MB / 475.8 MB, free: 34.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.706e-05/0.3511, allocations: 13.45 kB / 475.8 MB, free: 34.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001464/0.3526, allocations: 1.002 MB / 476.8 MB, free: 33.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.346e-06/0.3526, allocations: 0 / 476.8 MB, free: 33.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.008234/0.3609, allocations: 4.804 MB / 481.6 MB, free: 32.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.361, allocations: 132.1 kB / 481.8 MB, free: 32.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008801/0.3619, allocations: 0.7768 MB / 482.5 MB, free: 32.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.362, allocations: 54.92 kB / 482.6 MB, free: 32.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002953/0.3623, allocations: 0.5061 MB / 483.1 MB, free: 32.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002706/0.3625, allocations: 410.3 kB / 483.5 MB, free: 32.07 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.245e-05/0.3626, allocations: 19.75 kB / 483.5 MB, free: 32.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.3627, allocations: 421.2 kB / 483.9 MB, free: 31.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008686/0.3636, allocations: 0.6738 MB / 484.6 MB, free: 31.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009527/0.3646, allocations: 0.9517 MB / 485.5 MB, free: 31.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001027/0.3656, allocations: 0.83 MB / 486.4 MB, free: 30.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3656, allocations: 5.219 kB / 486.4 MB, free: 30.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003532/0.3692, allocations: 2.287 MB / 488.7 MB, free: 30.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.019e-05/0.3693, allocations: 64.28 kB / 488.7 MB, free: 29.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/0.3693, allocations: 12.25 kB / 488.7 MB, free: 29.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/0.3705, allocations: 414.1 kB / 489.1 MB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008028/0.3713, allocations: 224.7 kB / 489.4 MB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006807/0.3781, allocations: 5.676 MB / 495 MB, free: 25.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.3792, allocations: 102.8 kB / 495.1 MB, free: 25.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002689/0.3795, allocations: 85.59 kB / 495.2 MB, free: 25.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 115 * Array equations: 3 * Algorithm blocks: 7 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.001007/0.3805, allocations: 459.8 kB / 495.7 MB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003262/0.3808, allocations: 114.4 kB / 495.8 MB, free: 25.56 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004089/0.3849, allocations: 1.999 MB / 497.8 MB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-05/0.385, allocations: 30.05 kB / 497.8 MB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.324e-05/0.385, allocations: 2.188 kB / 497.8 MB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/0.385, allocations: 7.797 kB / 497.8 MB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006228/0.3913, allocations: 3.465 MB / 0.4895 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.3913, allocations: 1.344 kB / 0.4895 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009094/0.3922, allocations: 169.1 kB / 0.4897 GB, free: 23.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005222/0.3928, allocations: 157.4 kB / 0.4899 GB, free: 23.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001398/0.3929, allocations: 45.36 kB / 0.4899 GB, free: 23.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002976/0.3959, allocations: 4.453 MB / 0.4942 GB, free: 19.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.3959, allocations: 1.438 kB / 0.4942 GB, free: 19.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005551/0.4015, allocations: 2.959 MB / 0.4971 GB, free: 17.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006685/0.4022, allocations: 310.5 kB / 0.4974 GB, free: 17.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003744/0.4026, allocations: 85.28 kB / 0.4975 GB, free: 17.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.4036, allocations: 127.6 kB / 0.4976 GB, free: 17.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/0.4039, allocations: 80.23 kB / 0.4977 GB, free: 17.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.404, allocations: 42.66 kB / 0.4978 GB, free: 17.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000934/0.4049, allocations: 0.5281 MB / 0.4983 GB, free: 17.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4049, allocations: 0 / 0.4983 GB, free: 17.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001507/0.4065, allocations: 358.7 kB / 0.4986 GB, free: 17.23 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/0.4078, allocations: 0.49 MB / 0.4991 GB, free: 16.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005086/0.4129, allocations: 3.003 MB / 0.502 GB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.413, allocations: 1.125 kB / 0.502 GB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.4152, allocations: 1.24 MB / 0.5032 GB, free: 14.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001517/0.4168, allocations: 243.2 kB / 0.5035 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006339/0.4231, allocations: 4.104 MB / 0.5075 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009585/0.4241, allocations: 1.279 MB / 0.5087 GB, free: 11.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009129/0.4251, allocations: 304.5 kB / 0.509 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000318/0.4254, allocations: 81.34 kB / 0.5091 GB, free: 11.68 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4254, allocations: 0 / 0.5091 GB, free: 11.68 MB / 382.1 MB Notification: Performance of Templates: time 0.02952/0.4549, allocations: 20.19 MB / 0.5288 GB, free: 9.477 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM.pipe 2>&1) Environment - environmentSimulation: