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.0009955/0.0009954, allocations: 96.98 kB / 16.3 MB, free: 5.992 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.001002/0.001002, allocations: 184 kB / 17.2 MB, free: 5.914 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.602/1.602, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3066/0.3066, allocations: 38.05 MB / 309.7 MB, free: 8.988 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.0004955/0.0004957, allocations: 16 kB / 376.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1159, allocations: 56.34 MB / 432.8 MB, free: 6.836 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.01124/0.1272, allocations: 7.38 MB / 440.2 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009657/0.137, allocations: 5.178 MB / 445.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.1385, allocations: 55.62 kB / 445.4 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006284/0.1448, allocations: 1.902 MB / 447.3 MB, free: 8.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002464/0.1473, allocations: 0.5452 MB / 447.9 MB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.1489, allocations: 439.1 kB / 448.3 MB, free: 7.297 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001676/0.1506, allocations: 0.956 MB / 449.3 MB, free: 6.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002244/0.1528, allocations: 1.246 MB / 450.5 MB, free: 5.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001226/0.1541, allocations: 0.5451 MB / 451.1 MB, free: 4.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001068/0.1552, allocations: 0.6387 MB / 451.7 MB, free: 3.852 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003321/0.1555, allocations: 60 kB / 451.8 MB, free: 3.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001221/0.1567, allocations: 0.5227 MB / 452.3 MB, free: 3.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006712/0.1574, allocations: 0.5261 MB / 452.8 MB, free: 2.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005164/0.158, allocations: 285 kB / 453.1 MB, free: 2.457 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001996/0.16, allocations: 1.683 MB / 454.8 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.16, allocations: 0 / 454.8 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.16, allocations: 0 / 454.8 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.798e-05/0.1601, allocations: 4 kB / 454.8 MB, free: 0.7656 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.238/0.398, allocations: 1.691 MB / 456.5 MB, free: 51.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3981, allocations: 10.34 kB / 456.5 MB, free: 51.26 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007996/0.3989, allocations: 179.2 kB / 456.7 MB, free: 51.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001839/0.4007, allocations: 0.9857 MB / 457.6 MB, free: 50.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.4009, allocations: 182.7 kB / 457.8 MB, free: 50.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/0.4011, allocations: 113.4 kB / 457.9 MB, free: 50.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002837/0.4039, allocations: 1.873 MB / 459.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.242e-05/0.404, allocations: 0 / 459.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.4041, allocations: 45.08 kB / 459.8 MB, free: 50.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003038/0.4044, allocations: 125.8 kB / 460 MB, free: 50.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002616/0.407, allocations: 1.615 MB / 461.6 MB, free: 50.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007906/0.415, allocations: 5.756 MB / 467.3 MB, free: 47.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002219/0.4172, allocations: 1.241 MB / 468.6 MB, free: 47.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.799e-05/0.4173, allocations: 13.47 kB / 468.6 MB, free: 47.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00154/0.4189, allocations: 0.9953 MB / 469.6 MB, free: 46.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.106e-06/0.4189, allocations: 0 / 469.6 MB, free: 46.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.008376/0.4273, allocations: 5.232 MB / 474.8 MB, free: 44.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.4274, allocations: 134.8 kB / 475 MB, free: 44.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008547/0.4282, allocations: 0.7766 MB / 475.7 MB, free: 43.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.4283, allocations: 59.3 kB / 475.8 MB, free: 43.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002778/0.4286, allocations: 0.502 MB / 476.3 MB, free: 43.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002375/0.4289, allocations: 405.8 kB / 476.7 MB, free: 43.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/0.4289, allocations: 22.19 kB / 476.7 MB, free: 43.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.4291, allocations: 421.2 kB / 477.1 MB, free: 42.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008106/0.4299, allocations: 0.6659 MB / 477.8 MB, free: 42.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00087/0.4308, allocations: 0.9479 MB / 478.7 MB, free: 41.88 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009205/0.4317, allocations: 0.8416 MB / 479.6 MB, free: 41.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4317, allocations: 8.438 kB / 479.6 MB, free: 41.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.003129/0.4348, allocations: 2.379 MB / 482 MB, free: 40.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.629e-05/0.4349, allocations: 66.62 kB / 482 MB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.435, allocations: 6.219 kB / 482 MB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.4361, allocations: 433.5 kB / 482.5 MB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007546/0.4369, allocations: 214.8 kB / 482.7 MB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00705/0.444, allocations: 7.246 MB / 489.9 MB, free: 34.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.4452, allocations: 99.05 kB / 490 MB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.4453, allocations: 90.58 kB / 490.1 MB, free: 34.81 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 (126): * Single equations (assignments): 113 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0007216/0.4461, allocations: 454.1 kB / 490.5 MB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.4463, allocations: 111.5 kB / 490.6 MB, free: 34.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003804/0.4501, allocations: 2.104 MB / 492.8 MB, free: 33.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/0.4501, allocations: 26.28 kB / 492.8 MB, free: 33.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.4502, allocations: 1.969 kB / 492.8 MB, free: 33.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.324e-05/0.4502, allocations: 4.672 kB / 492.8 MB, free: 33.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006167/0.4564, allocations: 3.573 MB / 496.4 MB, free: 31.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.4564, allocations: 1.062 kB / 496.4 MB, free: 31.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008811/0.4573, allocations: 172.7 kB / 496.5 MB, free: 31.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005527/0.4578, allocations: 183.2 kB / 496.7 MB, free: 31.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-05/0.458, allocations: 29.25 kB / 496.7 MB, free: 31.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003863/0.4618, allocations: 5.883 MB / 0.4908 GB, free: 26.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.4618, allocations: 5.281 kB / 0.4908 GB, free: 26.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005755/0.4676, allocations: 3.086 MB / 0.4939 GB, free: 24.83 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007126/0.4683, allocations: 314.7 kB / 0.4942 GB, free: 24.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/0.4686, allocations: 86.02 kB / 0.4942 GB, free: 24.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009664/0.4696, allocations: 128.3 kB / 0.4944 GB, free: 24.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000304/0.4699, allocations: 81.38 kB / 0.4944 GB, free: 24.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.47, allocations: 45.58 kB / 0.4945 GB, free: 24.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001018/0.4711, allocations: 0.5276 MB / 0.495 GB, free: 24.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4711, allocations: 5.031 kB / 0.495 GB, free: 24.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00221/0.4733, allocations: 360.7 kB / 0.4953 GB, free: 24.27 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 (97): * Single equations (assignments): 77 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(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.001287/0.4746, allocations: 0.4902 MB / 0.4958 GB, free: 23.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005263/0.4799, allocations: 3.122 MB / 0.4989 GB, free: 22.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.4799, allocations: 5.125 kB / 0.4989 GB, free: 22.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002567/0.4825, allocations: 1.36 MB / 0.5002 GB, free: 21.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/0.4837, allocations: 218.7 kB / 0.5004 GB, free: 21.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006493/0.4902, allocations: 4.094 MB / 0.5044 GB, free: 19.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/0.4913, allocations: 1.31 MB / 0.5057 GB, free: 18.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001087/0.4924, allocations: 297.5 kB / 0.506 GB, free: 18.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003055/0.4927, allocations: 87.2 kB / 0.5061 GB, free: 18.42 MB / 382.1 MB Notification: Performance of SimCode: time 1.573e-06/0.4928, allocations: 0 / 0.5061 GB, free: 18.42 MB / 382.1 MB Notification: Performance of Templates: time 0.029/0.5218, allocations: 20.49 MB / 0.5261 GB, free: 1.066 MB / 382.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: