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.00115/0.00115, allocations: 96.67 kB / 16.31 MB, free: 6.457 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.001395/0.001395, allocations: 175.5 kB / 17.19 MB, free: 6.348 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.614/1.614, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1783/0.1783, allocations: 38.04 MB / 309.7 MB, free: 6.121 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.0005018/0.0005018, allocations: 15.12 kB / 376.5 MB, free: 3.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2435, allocations: 56.33 MB / 432.8 MB, free: 18.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.006703/0.2502, allocations: 7.105 MB / 439.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00685/0.2571, allocations: 5.034 MB / 445 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.2583, allocations: 51.62 kB / 445 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005051/0.2633, allocations: 1.937 MB / 446.9 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.265, allocations: 457.6 kB / 447.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001451/0.2664, allocations: 423.2 kB / 447.8 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008227/0.2673, allocations: 0.7532 MB / 448.6 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000989/0.2683, allocations: 0.9716 MB / 449.5 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004589/0.2687, allocations: 442.4 kB / 450 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004851/0.2692, allocations: 0.4905 MB / 450.5 MB, free: 1.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.2694, allocations: 52 kB / 450.5 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003942/0.2698, allocations: 151.8 kB / 450.7 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.2701, allocations: 411 kB / 451.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.2702, allocations: 225.1 kB / 451.3 MB, free: 296 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009995/0.2712, allocations: 1.181 MB / 452.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2712, allocations: 0 / 452.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2712, allocations: 0 / 452.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.2713, allocations: 0 / 452.5 MB, free: 15.1 MB / 334.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.002551/0.2738, allocations: 1.269 MB / 453.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.2739, allocations: 12.03 kB / 453.7 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005826/0.2745, allocations: 150.5 kB / 453.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001577/0.276, allocations: 0.8511 MB / 454.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.277e-05/0.2761, allocations: 58 kB / 454.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.2763, allocations: 91.89 kB / 454.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.2779, allocations: 1.224 MB / 456.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/0.278, allocations: 3.984 kB / 456.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-05/0.2781, allocations: 36 kB / 456.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.2783, allocations: 85.91 kB / 456.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.2798, allocations: 0.9953 MB / 457.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006379/0.2862, allocations: 4.924 MB / 462.1 MB, free: 5.023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008819/0.2871, allocations: 0.6565 MB / 462.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.2871, allocations: 8.625 kB / 462.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005953/0.2878, allocations: 441.8 kB / 463.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=62): time 2.234e-06/0.2878, allocations: 0 / 463.2 MB, free: 3.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=65): time 0.00464/0.2924, allocations: 2.908 MB / 466.1 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.711e-05/0.2925, allocations: 115.4 kB / 466.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009468/0.2935, allocations: 0.7389 MB / 467 MB, free: 15.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.834e-05/0.2935, allocations: 37.7 kB / 467 MB, free: 15.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/0.2939, allocations: 0.4986 MB / 467.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.2941, allocations: 240.6 kB / 467.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.2941, allocations: 20 kB / 467.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.2943, allocations: 406.7 kB / 468.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.2949, allocations: 373.7 kB / 468.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007171/0.2956, allocations: 0.6497 MB / 469.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006693/0.2963, allocations: 490.9 kB / 469.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.2963, allocations: 4 kB / 469.7 MB, free: 13.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002793/0.2991, allocations: 1.703 MB / 471.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.2991, allocations: 12 kB / 471.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.2991, allocations: 8 kB / 471.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/0.3006, allocations: 0.5066 MB / 471.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005774/0.3012, allocations: 163.7 kB / 472.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009909/0.3111, allocations: 8.084 MB / 480.2 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008177/0.312, allocations: 51.88 kB / 480.2 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.613e-05/0.3121, allocations: 47.94 kB / 480.3 MB, free: 2.02 MB / 350.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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * 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 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0005904/0.3127, allocations: 349.4 kB / 480.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.3128, allocations: 86.95 kB / 480.7 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.3147, allocations: 1.214 MB / 481.9 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3147, allocations: 4 kB / 481.9 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.3147, allocations: 11.97 kB / 481.9 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3147, allocations: 0 / 481.9 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003799/0.3185, allocations: 2.203 MB / 484.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3185, allocations: 0 / 484.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006635/0.3192, allocations: 115.8 kB / 484.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/0.3198, allocations: 191.3 kB / 484.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.546e-05/0.3198, allocations: 23.92 kB / 484.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005427/0.3253, allocations: 5.879 MB / 490.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3253, allocations: 0 / 490.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/0.3277, allocations: 1.696 MB / 492 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004843/0.3282, allocations: 216 kB / 492.2 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.3283, allocations: 24 kB / 492.2 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004058/0.3287, allocations: 35.91 kB / 492.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.3289, allocations: 52.44 kB / 492.3 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.356e-05/0.329, allocations: 27.98 kB / 492.4 MB, free: 4.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008122/0.3298, allocations: 0.499 MB / 492.9 MB, free: 4.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3298, allocations: 0 / 492.9 MB, free: 4.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0012/0.331, allocations: 276.1 kB / 493.1 MB, free: 4.23 MB / 366.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 (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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%) 3,(1,100.0%) 1,(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.0009577/0.332, allocations: 408.2 kB / 493.5 MB, free: 3.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002647/0.3346, allocations: 1.441 MB / 495 MB, free: 2.398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3346, allocations: 0 / 495 MB, free: 2.398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001444/0.3361, allocations: 0.89 MB / 495.9 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008766/0.337, allocations: 209.6 kB / 496.1 MB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004622/0.3416, allocations: 3.249 MB / 499.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008992/0.3425, allocations: 1.166 MB / 0.4887 GB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007276/0.3433, allocations: 231.3 kB / 0.489 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.3435, allocations: 75.36 kB / 0.489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.3435, allocations: 0 / 0.489 GB, free: 12.46 MB / 382.1 MB Notification: Performance of Templates: time 0.02294/0.3664, allocations: 13.55 MB / 0.5023 GB, free: 14.89 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: