Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.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_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008197/0.0008195, allocations: 86.2 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.0008656/0.0008656, allocations: 183.4 kB / 17.21 MB, free: 6.32 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.391/1.391, allocations: 205.4 MB / 223.4 MB, free: 5.273 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3064/0.3064, allocations: 38.04 MB / 309.7 MB, free: 9.027 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.000518/0.0005181, allocations: 16 kB / 376.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1005, allocations: 56.34 MB / 432.9 MB, free: 6.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.008531/0.109, allocations: 7.451 MB / 440.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008542/0.1176, allocations: 5.025 MB / 445.3 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.1188, allocations: 47.69 kB / 445.4 MB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009826/0.1286, allocations: 5.366 MB / 450.7 MB, free: 4.738 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00184/0.1305, allocations: 0.5324 MB / 451.3 MB, free: 4.203 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.132, allocations: 451.3 kB / 451.7 MB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003936/0.1359, allocations: 2.807 MB / 454.5 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2/0.336, allocations: 1.04 MB / 455.6 MB, free: 38.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001279/0.3373, allocations: 0.5759 MB / 456.1 MB, free: 38.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009777/0.3383, allocations: 0.786 MB / 456.9 MB, free: 38.51 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.3385, allocations: 55.62 kB / 457 MB, free: 38.51 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.3388, allocations: 118 kB / 457.1 MB, free: 38.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003603/0.3392, allocations: 447.1 kB / 457.5 MB, free: 38.51 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.3395, allocations: 254.6 kB / 457.8 MB, free: 38.48 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.3406, allocations: 1.469 MB / 459.2 MB, free: 38.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.3406, allocations: 0 / 459.2 MB, free: 38.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3406, allocations: 2.875 kB / 459.3 MB, free: 38.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.652e-05/0.3406, allocations: 0 / 459.3 MB, free: 38.43 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.003111/0.3437, allocations: 1.477 MB / 460.7 MB, free: 37.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3438, allocations: 9.656 kB / 460.7 MB, free: 37.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004387/0.3442, allocations: 148.3 kB / 460.9 MB, free: 37.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001745/0.346, allocations: 1.033 MB / 461.9 MB, free: 37.28 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.667e-05/0.3461, allocations: 64.06 kB / 462 MB, free: 37.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/0.3462, allocations: 99.08 kB / 462.1 MB, free: 37.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.348, allocations: 1.323 MB / 463.4 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.348, allocations: 6.016 kB / 463.4 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.646e-05/0.3481, allocations: 38.89 kB / 463.4 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002681/0.3484, allocations: 93.14 kB / 463.5 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.35, allocations: 1.142 MB / 464.7 MB, free: 37.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005841/0.3558, allocations: 4.953 MB / 469.6 MB, free: 35.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.357, allocations: 0.9421 MB / 470.6 MB, free: 35.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006509/0.3577, allocations: 0.5387 MB / 471.1 MB, free: 35.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.856e-05/0.3578, allocations: 18.38 kB / 471.1 MB, free: 35.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007505/0.3585, allocations: 0.619 MB / 471.7 MB, free: 35.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=79): time 4.138e-06/0.3586, allocations: 0.9844 kB / 471.7 MB, free: 35.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.007607/0.3662, allocations: 4.219 MB / 476 MB, free: 33.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.951e-05/0.3663, allocations: 167.9 kB / 476.1 MB, free: 33.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000858/0.3671, allocations: 0.8427 MB / 477 MB, free: 33.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.338e-05/0.3672, allocations: 41.61 kB / 477 MB, free: 33.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.3675, allocations: 0.5153 MB / 477.5 MB, free: 33.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001838/0.3677, allocations: 288 kB / 477.8 MB, free: 32.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.657e-05/0.3677, allocations: 29.03 kB / 477.8 MB, free: 32.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.065e-05/0.3678, allocations: 343.8 kB / 478.2 MB, free: 32.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006477/0.3685, allocations: 475.5 kB / 478.6 MB, free: 32.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007464/0.3692, allocations: 0.7176 MB / 479.4 MB, free: 32.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007482/0.37, allocations: 0.5681 MB / 479.9 MB, free: 32.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.37, allocations: 0 / 479.9 MB, free: 32.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00746/0.3774, allocations: 2.932 MB / 482.9 MB, free: 32.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.3776, allocations: 295.1 kB / 483.1 MB, free: 31.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.3777, allocations: 11.47 kB / 483.2 MB, free: 31.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007478/0.3851, allocations: 1.924 MB / 485.1 MB, free: 31.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006419/0.3858, allocations: 146.1 kB / 485.2 MB, free: 31.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/0.4035, allocations: 11.53 MB / 496.8 MB, free: 25.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008763/0.4044, allocations: 62 kB / 496.8 MB, free: 25.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.4045, allocations: 51.09 kB / 496.9 MB, free: 25.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.4045, allocations: 3.812 kB / 496.9 MB, free: 25.28 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007814/0.4123, allocations: 2.7 MB / 499.6 MB, free: 24.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.4124, allocations: 6.062 kB / 499.6 MB, free: 24.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007914/0.4203, allocations: 1.846 MB / 0.4897 GB, free: 24.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007003/0.421, allocations: 144.9 kB / 0.4898 GB, free: 24.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/0.4391, allocations: 11.26 MB / 0.5008 GB, free: 18.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008938/0.44, allocations: 54.73 kB / 0.5009 GB, free: 18.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001663/0.4402, allocations: 52.62 kB / 0.5009 GB, free: 18.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,$whenCondition1,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * 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: 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 {9 40} Notification: Performance of prepare postOptimizeDAE: time 0.000762/0.441, allocations: 445.9 kB / 0.5013 GB, free: 17.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.4412, allocations: 101.5 kB / 0.5014 GB, free: 17.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.444, allocations: 1.666 MB / 0.503 GB, free: 16.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.567e-06/0.444, allocations: 9.594 kB / 0.5031 GB, free: 16.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/0.444, allocations: 3.031 kB / 0.5031 GB, free: 16.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.444, allocations: 3.984 kB / 0.5031 GB, free: 16.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00456/0.4486, allocations: 2.915 MB / 0.5059 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.4486, allocations: 0 / 0.5059 GB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009092/0.4495, allocations: 168.7 kB / 0.5061 GB, free: 14.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.4508, allocations: 396.1 kB / 0.5065 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.4509, allocations: 33.61 kB / 0.5065 GB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004197/0.4551, allocations: 6.29 MB / 0.5126 GB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.4551, allocations: 7.641 kB / 0.5126 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003313/0.4585, allocations: 2.303 MB / 0.5149 GB, free: 7.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004538/0.4589, allocations: 269.3 kB / 0.5151 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.4591, allocations: 19.95 kB / 0.5152 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005994/0.4597, allocations: 50.14 kB / 0.5152 GB, free: 6.922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.4599, allocations: 70.8 kB / 0.5153 GB, free: 6.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.86e-05/0.46, allocations: 37.36 kB / 0.5153 GB, free: 6.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007111/0.4607, allocations: 0.5697 MB / 0.5159 GB, free: 6.336 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4607, allocations: 0 / 0.5159 GB, free: 6.336 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002096/0.4628, allocations: 0.5508 MB / 0.5164 GB, free: 5.785 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.rotor.phi,asm_ctrl.rotor.w,asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * 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 (82): * Single equations (assignments): 77 * 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 {(2,100.0%) 2,(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.0008513/0.4637, allocations: 428.1 kB / 0.5168 GB, free: 5.414 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005842/0.4695, allocations: 3.221 MB / 0.52 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.4696, allocations: 320 / 0.52 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.4712, allocations: 1.146 MB / 0.5211 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.4728, allocations: 259.2 kB / 0.5213 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005209/0.4781, allocations: 3.529 MB / 0.5248 GB, free: 13.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001153/0.4792, allocations: 1.253 MB / 0.526 GB, free: 11.88 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001098/0.4804, allocations: 253 kB / 0.5262 GB, free: 11.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003473/0.4807, allocations: 83.41 kB / 0.5263 GB, free: 11.55 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4807, allocations: 3.938 kB / 0.5263 GB, free: 11.55 MB / 398.1 MB Notification: Performance of Templates: time 0.0475/0.5282, allocations: 30.03 MB / 0.5556 GB, free: 13.5 MB / 430.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1) Environment - environmentSimulation: