Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2400,variableFilter="Time|asm_ctrl.motor.tau_el|tabLoad.vVehicle",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001544/0.001544, allocations: 182.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.741/1.741, allocations: 205.1 MB / 223.1 MB, free: 8.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 104.1 kB / 270.5 MB, free: 8.418 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1791/0.1791, allocations: 38 MB / 355.8 MB, free: 2.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 55.91 kB / 421.9 MB, free: 37.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3334, allocations: 55.24 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01106/0.3445, allocations: 8.367 MB / 485.5 MB, free: 3.992 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.3546, allocations: 5.478 MB / 490.9 MB, free: 216 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00223/0.3569, allocations: 53.31 kB / 491 MB, free: 196 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01444/0.3714, allocations: 5.545 MB / 496.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.3739, allocations: 0.511 MB / 497.1 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001697/0.3756, allocations: 0.512 MB / 497.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005896/0.3815, allocations: 3.241 MB / 0.4891 GB, free: 12.39 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/0.3836, allocations: 1.045 MB / 0.4901 GB, free: 11.71 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.385, allocations: 0.6119 MB / 0.4907 GB, free: 11.38 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.3864, allocations: 0.8564 MB / 0.4915 GB, free: 10.87 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.3866, allocations: 71.81 kB / 0.4916 GB, free: 10.87 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005723/0.3872, allocations: 138.6 kB / 0.4917 GB, free: 10.84 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005041/0.3877, allocations: 467.2 kB / 0.4922 GB, free: 10.54 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007403/0.3885, allocations: 0.6268 MB / 0.4928 GB, free: 10.1 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001959/0.3904, allocations: 1.812 MB / 0.4946 GB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3904, allocations: 0 / 0.4946 GB, free: 8.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3905, allocations: 0 / 0.4946 GB, free: 8.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.3905, allocations: 0 / 0.4946 GB, free: 8.785 MB / 330.7 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.004342/0.3948, allocations: 1.694 MB / 0.4962 GB, free: 7.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3949, allocations: 9.938 kB / 0.4962 GB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005631/0.3955, allocations: 147.7 kB / 0.4964 GB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002386/0.3978, allocations: 1.071 MB / 0.4974 GB, free: 6.578 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.3979, allocations: 58 kB / 0.4975 GB, free: 6.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001687/0.3981, allocations: 95.97 kB / 0.4975 GB, free: 6.426 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002064/0.4002, allocations: 1.328 MB / 0.4988 GB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.493e-05/0.4002, allocations: 11.91 kB / 0.4989 GB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.994e-05/0.4003, allocations: 32 kB / 0.4989 GB, free: 5.004 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003194/0.4006, allocations: 93.92 kB / 0.499 GB, free: 4.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.4025, allocations: 1.144 MB / 0.5001 GB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007406/0.4099, allocations: 4.951 MB / 0.5049 GB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001353/0.4113, allocations: 0.9308 MB / 0.5058 GB, free: 13.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007627/0.4121, allocations: 0.5277 MB / 0.5064 GB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.153e-05/0.4121, allocations: 16.64 kB / 0.5064 GB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009271/0.4131, allocations: 0.6255 MB / 0.507 GB, free: 12.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=79): time 3.226e-06/0.4131, allocations: 0 / 0.507 GB, free: 12.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=81): time 0.009121/0.4222, allocations: 4.155 MB / 0.511 GB, free: 8.152 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.828e-05/0.4223, allocations: 162.9 kB / 0.5112 GB, free: 7.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.4236, allocations: 0.8454 MB / 0.512 GB, free: 7.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.876e-05/0.4237, allocations: 49.58 kB / 0.5121 GB, free: 7.031 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000468/0.4241, allocations: 0.5229 MB / 0.5126 GB, free: 6.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000297/0.4244, allocations: 295.7 kB / 0.5129 GB, free: 6.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000361/0.4248, allocations: 186.5 kB / 0.513 GB, free: 6.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.425, allocations: 341.9 kB / 0.5134 GB, free: 5.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008401/0.4258, allocations: 488.6 kB / 0.5138 GB, free: 5.195 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.4269, allocations: 0.7169 MB / 0.5145 GB, free: 4.379 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.4287, allocations: 1.222 MB / 0.5157 GB, free: 3.066 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/0.4287, allocations: 8 kB / 0.5157 GB, free: 3.059 MB / 346.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.009028/0.4377, allocations: 2.895 MB / 0.5186 GB, free: 132 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/0.4378, allocations: 11.98 kB / 0.5186 GB, free: 120 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/0.4378, allocations: 12.25 kB / 0.5186 GB, free: 108 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008334/0.4462, allocations: 1.873 MB / 0.5204 GB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006865/0.4469, allocations: 147.7 kB / 0.5206 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01942/0.4663, allocations: 11.47 MB / 0.5317 GB, free: 2.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.4677, allocations: 59.95 kB / 0.5318 GB, free: 2.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.4678, allocations: 43.97 kB / 0.5318 GB, free: 2.234 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001455/0.4692, allocations: 0.7595 MB / 0.5326 GB, free: 1.473 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008733/0.4701, allocations: 0.6974 MB / 0.5333 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001612/0.4717, allocations: 1.203 MB / 0.5344 GB, free: 15.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.861e-06/0.4718, allocations: 4 kB / 0.5344 GB, free: 15.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.008528/0.4803, allocations: 2.821 MB / 0.5372 GB, free: 12.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.4804, allocations: 8 kB / 0.5372 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.4804, allocations: 8 kB / 0.5372 GB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008356/0.4887, allocations: 1.858 MB / 0.539 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.4895, allocations: 143.7 kB / 0.5392 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0193/0.5088, allocations: 11.25 MB / 0.5502 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001148/0.51, allocations: 59.95 kB / 0.5502 GB, free: 14.92 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.234e-05/0.5101, allocations: 43.98 kB / 0.5503 GB, free: 14.88 MB / 394.7 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 (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 {(9,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0004238/0.5105, allocations: 248 kB / 0.5505 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.5107, allocations: 102.7 kB / 0.5506 GB, free: 14.53 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003147/0.5139, allocations: 1.638 MB / 0.5522 GB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.675e-05/0.5139, allocations: 15.94 kB / 0.5522 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/0.514, allocations: 4 kB / 0.5522 GB, free: 12.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.514, allocations: 3.984 kB / 0.5522 GB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005082/0.5191, allocations: 2.902 MB / 0.555 GB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/0.5191, allocations: 4 kB / 0.5551 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009696/0.5201, allocations: 167.8 kB / 0.5552 GB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.5214, allocations: 383 kB / 0.5556 GB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.5215, allocations: 23.98 kB / 0.5556 GB, free: 9.211 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005981/0.5275, allocations: 6.297 MB / 0.5618 GB, free: 2.387 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.5276, allocations: 11.95 kB / 0.5618 GB, free: 2.375 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03609/0.5637, allocations: 21.16 MB / 0.5824 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005611/0.5643, allocations: 263.7 kB / 0.5827 GB, free: 12.03 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.5644, allocations: 28.05 kB / 0.5827 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006258/0.5651, allocations: 47.95 kB / 0.5827 GB, free: 11.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/0.5653, allocations: 64.84 kB / 0.5828 GB, free: 11.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.568e-05/0.5654, allocations: 39.92 kB / 0.5828 GB, free: 11.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008861/0.5663, allocations: 0.5817 MB / 0.5834 GB, free: 11.26 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5663, allocations: 0 / 0.5834 GB, free: 11.26 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003509/0.5698, allocations: 0.8398 MB / 0.5842 GB, free: 10.42 MB / 426.7 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (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.00118/0.571, allocations: 488.8 kB / 0.5847 GB, free: 9.992 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006581/0.5776, allocations: 3.184 MB / 0.5878 GB, free: 6.754 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.5776, allocations: 1.188 kB / 0.5878 GB, free: 6.754 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.5795, allocations: 1.141 MB / 0.5889 GB, free: 5.562 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001567/0.5811, allocations: 263.1 kB / 0.5892 GB, free: 5.305 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007512/0.5887, allocations: 4.594 MB / 0.5937 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001051/0.5897, allocations: 1.29 MB / 0.5949 GB, free: 15.29 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001302/0.5911, allocations: 296.1 kB / 0.5952 GB, free: 15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003952/0.5915, allocations: 99.39 kB / 0.5953 GB, free: 14.9 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/0.5915, allocations: 0 / 0.5953 GB, free: 14.9 MB / 442.7 MB Notification: Performance of Templates: time 0.05947/0.6509, allocations: 39.3 MB / 0.6337 GB, free: 7.52 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol.pipe 2>&1)