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.0007897/0.0007898, allocations: 91.94 kB / 16.65 MB, free: 6.59 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.000919/0.0009191, allocations: 185.2 kB / 17.57 MB, free: 6.199 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.723/1.723, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1795/0.1795, allocations: 38.05 MB / 310.1 MB, free: 6 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.0005182/0.0005182, allocations: 12 kB / 377.2 MB, free: 2.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2787, allocations: 56.34 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.007538/0.2863, allocations: 7.887 MB / 441.4 MB, free: 10.76 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008839/0.2952, allocations: 5.478 MB / 446.9 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00171/0.297, allocations: 51.62 kB / 446.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009837/0.3069, allocations: 5.448 MB / 452.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001914/0.3088, allocations: 485.9 kB / 452.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.3105, allocations: 438.4 kB / 453.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005009/0.3155, allocations: 2.947 MB / 456.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002623/0.3182, allocations: 1.021 MB / 457.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001387/0.3196, allocations: 497.8 kB / 457.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.3211, allocations: 0.7084 MB / 458.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003103/0.3214, allocations: 48 kB / 458.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009778/0.3224, allocations: 223.6 kB / 458.7 MB, free: 9.371 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007557/0.3232, allocations: 446.8 kB / 459.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.3242, allocations: 0.5418 MB / 459.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002192/0.3264, allocations: 1.456 MB / 461.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3265, allocations: 0 / 461.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.607e-06/0.3265, allocations: 0 / 461.1 MB, free: 6.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.687e-05/0.3265, allocations: 3.938 kB / 461.1 MB, free: 6.918 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.003617/0.3302, allocations: 1.25 MB / 462.4 MB, free: 5.613 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.3302, allocations: 12.03 kB / 462.4 MB, free: 5.602 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008549/0.3311, allocations: 147.5 kB / 462.5 MB, free: 5.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.3331, allocations: 0.886 MB / 463.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.296e-05/0.3332, allocations: 58 kB / 463.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.3334, allocations: 91.88 kB / 463.6 MB, free: 4.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002002/0.3354, allocations: 1.243 MB / 464.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.362e-05/0.3354, allocations: 3.938 kB / 464.8 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.37e-05/0.3355, allocations: 32 kB / 464.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002267/0.3357, allocations: 89.94 kB / 464.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001543/0.3373, allocations: 1.003 MB / 465.9 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006678/0.344, allocations: 4.936 MB / 470.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009557/0.345, allocations: 0.6642 MB / 471.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005437/0.3455, allocations: 355.3 kB / 471.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.913e-05/0.3456, allocations: 12.55 kB / 471.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006563/0.3463, allocations: 441.8 kB / 472.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 5.139e-06/0.3463, allocations: 7.984 kB / 472.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004775/0.3511, allocations: 2.719 MB / 475.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.332e-05/0.3512, allocations: 111.3 kB / 475.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009598/0.3522, allocations: 0.7468 MB / 475.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.3522, allocations: 37.7 kB / 476 MB, free: 7.477 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003536/0.3526, allocations: 0.4948 MB / 476.4 MB, free: 6.973 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001962/0.3528, allocations: 240.6 kB / 476.7 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001238/0.3529, allocations: 85.67 kB / 476.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.3531, allocations: 398.7 kB / 477.2 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005879/0.3537, allocations: 381.8 kB / 477.5 MB, free: 5.871 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008263/0.3545, allocations: 0.6537 MB / 478.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.3561, allocations: 1.057 MB / 479.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3561, allocations: 0 / 479.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003077/0.3592, allocations: 1.63 MB / 480.9 MB, free: 2.246 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.3592, allocations: 8.5 kB / 480.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/0.3593, allocations: 12 kB / 480.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.3607, allocations: 493.7 kB / 481.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005943/0.3613, allocations: 167.7 kB / 481.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009205/0.3705, allocations: 6.517 MB / 488.1 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009762/0.3716, allocations: 47.94 kB / 488.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.135e-05/0.3717, allocations: 51.98 kB / 488.1 MB, free: 10.68 MB / 366.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.0007123/0.3724, allocations: 357.4 kB / 488.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001306/0.3725, allocations: 82.97 kB / 488.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001836/0.3744, allocations: 1.11 MB / 489.7 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.3744, allocations: 11.94 kB / 489.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3744, allocations: 0 / 489.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.3744, allocations: 7.922 kB / 489.7 MB, free: 9.055 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/0.3779, allocations: 2.115 MB / 491.8 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3779, allocations: 4 kB / 491.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007487/0.3786, allocations: 127.9 kB / 492 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005264/0.3792, allocations: 158.4 kB / 492.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.313e-05/0.3792, allocations: 19.98 kB / 492.1 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003929/0.3832, allocations: 4.458 MB / 496.6 MB, free: 1.656 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3832, allocations: 8.062 kB / 496.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002143/0.3853, allocations: 1.533 MB / 498.1 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003983/0.3858, allocations: 219.9 kB / 498.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.3859, allocations: 20 kB / 498.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004221/0.3863, allocations: 35.97 kB / 498.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.3864, allocations: 52.42 kB / 498.4 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.575e-05/0.3865, allocations: 20 kB / 498.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007036/0.3872, allocations: 0.5146 MB / 499 MB, free: 15.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3872, allocations: 0 / 499 MB, free: 15.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00114/0.3884, allocations: 260.1 kB / 499.2 MB, free: 14.92 MB / 382.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.001104/0.3895, allocations: 426.6 kB / 499.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002358/0.3918, allocations: 1.315 MB / 0.4892 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.3919, allocations: 4 kB / 0.4892 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.3931, allocations: 0.7769 MB / 0.49 GB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.3942, allocations: 195.6 kB / 0.4902 GB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/0.3988, allocations: 3.317 MB / 0.4934 GB, free: 8.836 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007573/0.3996, allocations: 1.147 MB / 0.4945 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007173/0.4003, allocations: 235.3 kB / 0.4948 GB, free: 7.422 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.4005, allocations: 71.41 kB / 0.4948 GB, free: 7.352 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4005, allocations: 0 / 0.4948 GB, free: 7.352 MB / 382.1 MB Notification: Performance of Templates: time 0.02416/0.4247, allocations: 13.72 MB / 0.5082 GB, free: 9.617 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: