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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001415/0.001415, allocations: 112.2 kB / 17.74 MB, free: 5.344 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.001667/0.001667, allocations: 187.1 kB / 18.67 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1807/0.1807, allocations: 38.02 MB / 330.5 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 63.89 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3252, allocations: 58.05 MB / 0.5048 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007516/0.3328, allocations: 7.119 MB / 0.5117 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007382/0.3402, allocations: 5.085 MB / 0.5167 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009085/0.3412, allocations: 32.16 kB / 0.5167 GB, free: 15.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01175/0.3529, allocations: 5.716 MB / 0.5223 GB, free: 13.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001809/0.3548, allocations: 0.5151 MB / 0.5228 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.3563, allocations: 0.494 MB / 0.5233 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003598/0.3599, allocations: 2.255 MB / 0.5255 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001329/0.3613, allocations: 0.9294 MB / 0.5264 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001156/0.3624, allocations: 0.6117 MB / 0.527 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.3634, allocations: 0.7235 MB / 0.5277 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000172/0.3636, allocations: 100.1 kB / 0.5278 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006136/0.3642, allocations: 255.7 kB / 0.528 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004852/0.3647, allocations: 499.1 kB / 0.5285 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006/0.3654, allocations: 0.5825 MB / 0.5291 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001693/0.3671, allocations: 1.548 MB / 0.5306 GB, free: 9.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3671, allocations: 0 / 0.5306 GB, free: 9.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3671, allocations: 3.938 kB / 0.5306 GB, free: 9.418 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.3671, allocations: 0 / 0.5306 GB, free: 9.418 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.003075/0.3702, allocations: 1.457 MB / 0.532 GB, free: 8.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3702, allocations: 14.36 kB / 0.532 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006482/0.3709, allocations: 149.2 kB / 0.5322 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.3725, allocations: 0.9059 MB / 0.533 GB, free: 7.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.834e-05/0.3726, allocations: 63.25 kB / 0.5331 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.3728, allocations: 92.17 kB / 0.5332 GB, free: 7.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.3746, allocations: 1.236 MB / 0.5344 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.3747, allocations: 2.75 kB / 0.5344 GB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-05/0.3748, allocations: 32.62 kB / 0.5344 GB, free: 6.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002435/0.375, allocations: 87.97 kB / 0.5345 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.3766, allocations: 1.007 MB / 0.5355 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006914/0.3835, allocations: 4.89 MB / 0.5403 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009264/0.3845, allocations: 0.6456 MB / 0.5409 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005354/0.3851, allocations: 364.5 kB / 0.5413 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.004e-05/0.3851, allocations: 11.42 kB / 0.5413 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000638/0.3858, allocations: 447.3 kB / 0.5417 GB, free: 1.277 MB / 398.1 MB Notification: Performance of pre-optimization done (n=62): time 2.164e-06/0.3858, allocations: 0 / 0.5417 GB, free: 1.277 MB / 398.1 MB Notification: Performance of matching and sorting (n=65): time 0.004789/0.3906, allocations: 2.722 MB / 0.5444 GB, free: 15.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.771e-05/0.3907, allocations: 109.5 kB / 0.5445 GB, free: 15.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009375/0.3916, allocations: 0.751 MB / 0.5452 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.958e-05/0.3917, allocations: 37.7 kB / 0.5452 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.392, allocations: 0.4948 MB / 0.5457 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/0.3922, allocations: 244.5 kB / 0.5459 GB, free: 13.78 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002527/0.3925, allocations: 178.5 kB / 0.5461 GB, free: 13.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.3927, allocations: 398.7 kB / 0.5465 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005599/0.3933, allocations: 377.8 kB / 0.5469 GB, free: 12.83 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007163/0.394, allocations: 0.65 MB / 0.5475 GB, free: 12.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.3953, allocations: 1.057 MB / 0.5485 GB, free: 10.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.702e-06/0.3953, allocations: 4 kB / 0.5485 GB, free: 10.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002975/0.3983, allocations: 1.627 MB / 0.5501 GB, free: 9.207 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3983, allocations: 8.5 kB / 0.5501 GB, free: 9.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.3984, allocations: 16 kB / 0.5501 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.3998, allocations: 489.2 kB / 0.5506 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006351/0.4005, allocations: 167.7 kB / 0.5508 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009656/0.4101, allocations: 7.077 MB / 0.5577 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008924/0.4111, allocations: 52.03 kB / 0.5577 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.4112, allocations: 47.98 kB / 0.5578 GB, free: 1.078 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.0006786/0.4119, allocations: 345.5 kB / 0.5581 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.4122, allocations: 86.88 kB / 0.5582 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.4141, allocations: 1.114 MB / 0.5593 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.884e-06/0.4142, allocations: 8 kB / 0.5593 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.4142, allocations: 4 kB / 0.5593 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-06/0.4142, allocations: 3.984 kB / 0.5593 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003686/0.4179, allocations: 2.107 MB / 0.5613 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.4179, allocations: 4 kB / 0.5613 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/0.4186, allocations: 119.8 kB / 0.5615 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005254/0.4192, allocations: 170.5 kB / 0.5616 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-05/0.4193, allocations: 24.05 kB / 0.5616 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004055/0.4233, allocations: 4.801 MB / 0.5663 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4234, allocations: 0 / 0.5663 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.4257, allocations: 1.538 MB / 0.5678 GB, free: 6.078 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004386/0.4262, allocations: 215.9 kB / 0.568 GB, free: 5.848 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002015/0.4264, allocations: 24 kB / 0.5681 GB, free: 5.824 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005176/0.4269, allocations: 27.97 kB / 0.5681 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001433/0.427, allocations: 60.36 kB / 0.5681 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.132e-05/0.4271, allocations: 27.92 kB / 0.5682 GB, free: 5.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000754/0.4279, allocations: 0.5146 MB / 0.5687 GB, free: 5.203 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.834e-06/0.4279, allocations: 0 / 0.5687 GB, free: 5.203 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001153/0.429, allocations: 264.1 kB / 0.5689 GB, free: 4.945 MB / 430.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.0009858/0.43, allocations: 417.1 kB / 0.5693 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002495/0.4325, allocations: 1.329 MB / 0.5706 GB, free: 3.328 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.4326, allocations: 1.438 kB / 0.5706 GB, free: 3.328 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001293/0.4339, allocations: 0.7922 MB / 0.5714 GB, free: 2.496 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.4351, allocations: 218.6 kB / 0.5716 GB, free: 2.281 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0045/0.4396, allocations: 2.745 MB / 0.5743 GB, free: 15.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008184/0.4404, allocations: 1.139 MB / 0.5754 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002741/0.4407, allocations: 79.41 kB / 0.5755 GB, free: 14.24 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4407, allocations: 0 / 0.5755 GB, free: 14.24 MB / 446.1 MB Notification: Performance of Templates: time 0.02926/0.47, allocations: 22.91 MB / 0.5978 GB, free: 7.367 MB / 462.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)