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/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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00221/0.00221, allocations: 110.9 kB / 17.74 MB, free: 5.309 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.003122/0.003122, allocations: 184.5 kB / 18.67 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.764/2.764, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3566/0.3566, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002307/0.002307, allocations: 67.89 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8884/0.8907, allocations: 58.05 MB / 0.5048 GB, free: 7.992 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.03103/0.9219, allocations: 7.557 MB / 0.5121 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02951/0.9515, allocations: 5.117 MB / 0.5171 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00291/0.9544, allocations: 35.84 kB / 0.5172 GB, free: 15.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02724/0.9817, allocations: 5.604 MB / 0.5226 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00413/0.986, allocations: 0.5347 MB / 0.5232 GB, free: 13.25 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003452/0.9894, allocations: 0.5807 MB / 0.5237 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01435/1.004, allocations: 2.597 MB / 0.5263 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009451/1.013, allocations: 1.284 MB / 0.5275 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003327/1.017, allocations: 0.7236 MB / 0.5282 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007505/1.024, allocations: 0.853 MB / 0.5291 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/1.025, allocations: 143 kB / 0.5292 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/1.027, allocations: 219.6 kB / 0.5294 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001669/1.029, allocations: 0.5205 MB / 0.5299 GB, free: 9.996 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007604/1.037, allocations: 0.696 MB / 0.5306 GB, free: 9.488 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/1.047, allocations: 1.903 MB / 0.5325 GB, free: 8.113 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.467e-05/1.047, allocations: 0 / 0.5325 GB, free: 8.113 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.477e-06/1.047, allocations: 0 / 0.5325 GB, free: 8.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000102/1.047, allocations: 1 kB / 0.5325 GB, free: 8.113 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: 231 * Number of variables: 231 Notification: Performance of Generate backend data structure: time 0.01526/1.063, allocations: 1.695 MB / 0.5341 GB, free: 6.883 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.036e-05/1.063, allocations: 17.05 kB / 0.5341 GB, free: 6.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00169/1.065, allocations: 147.3 kB / 0.5343 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006195/1.071, allocations: 1.088 MB / 0.5353 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/1.071, allocations: 70.64 kB / 0.5354 GB, free: 5.949 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005799/1.072, allocations: 90.09 kB / 0.5355 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005137/1.077, allocations: 1.336 MB / 0.5368 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.95e-05/1.077, allocations: 1.25 kB / 0.5368 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/1.077, allocations: 36.67 kB / 0.5368 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006671/1.078, allocations: 97.42 kB / 0.5369 GB, free: 5.012 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004033/1.082, allocations: 1.14 MB / 0.538 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/1.099, allocations: 4.907 MB / 0.5428 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/1.102, allocations: 0.9438 MB / 0.5437 GB, free: 76 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001859/1.104, allocations: 0.5274 MB / 0.5443 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001616/1.104, allocations: 16.97 kB / 0.5443 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002144/1.106, allocations: 0.6262 MB / 0.5449 GB, free: 15.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 8.526e-06/1.106, allocations: 0 / 0.5449 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=81): time 0.02809/1.134, allocations: 4.159 MB / 0.549 GB, free: 10.95 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001706/1.135, allocations: 166.9 kB / 0.5491 GB, free: 10.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002447/1.137, allocations: 0.8488 MB / 0.5499 GB, free: 9.875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002931/1.138, allocations: 41.7 kB / 0.55 GB, free: 9.828 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007643/1.138, allocations: 0.5074 MB / 0.5505 GB, free: 9.312 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008318/1.139, allocations: 299.8 kB / 0.5508 GB, free: 9.016 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/1.14, allocations: 182.5 kB / 0.5509 GB, free: 8.832 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003192/1.141, allocations: 341.9 kB / 0.5513 GB, free: 8.492 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001769/1.142, allocations: 488.6 kB / 0.5517 GB, free: 8.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002202/1.145, allocations: 0.7169 MB / 0.5524 GB, free: 7.195 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003998/1.149, allocations: 1.226 MB / 0.5536 GB, free: 5.875 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.378e-05/1.149, allocations: 4 kB / 0.5536 GB, free: 5.871 MB / 414.1 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.0183/1.167, allocations: 2.895 MB / 0.5565 GB, free: 2.945 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.909e-05/1.167, allocations: 8 kB / 0.5565 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.28e-05/1.167, allocations: 7.938 kB / 0.5565 GB, free: 2.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02614/1.193, allocations: 1.881 MB / 0.5583 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001339/1.195, allocations: 139.8 kB / 0.5584 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06361/1.258, allocations: 12.53 MB / 0.5707 GB, free: 4.094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00253/1.265, allocations: 55.86 kB / 0.5707 GB, free: 4.039 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005342/1.266, allocations: 47.98 kB / 0.5708 GB, free: 3.992 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003203/1.269, allocations: 0.7517 MB / 0.5715 GB, free: 3.234 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006144/1.275, allocations: 0.7052 MB / 0.5722 GB, free: 2.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003897/1.279, allocations: 1.199 MB / 0.5734 GB, free: 1.145 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.231e-05/1.279, allocations: 4 kB / 0.5734 GB, free: 1.141 MB / 430.1 MB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.0208/1.3, allocations: 2.818 MB / 0.5761 GB, free: 14.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.057e-05/1.3, allocations: 15.97 kB / 0.5761 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.623e-05/1.3, allocations: 4 kB / 0.5761 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01647/1.317, allocations: 1.861 MB / 0.578 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/1.318, allocations: 143.7 kB / 0.5781 GB, free: 12.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05281/1.371, allocations: 12.31 MB / 0.5901 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002089/1.373, allocations: 43.97 kB / 0.5902 GB, free: 15.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003638/1.374, allocations: 47.98 kB / 0.5902 GB, free: 15.55 MB / 462.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 (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.0007184/1.374, allocations: 240 kB / 0.5904 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00469/1.379, allocations: 102.8 kB / 0.5905 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007334/1.386, allocations: 1.646 MB / 0.5921 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004088/1.391, allocations: 12 kB / 0.5922 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.799e-05/1.391, allocations: 0 / 0.5922 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.738e-05/1.391, allocations: 7.984 kB / 0.5922 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01642/1.407, allocations: 2.89 MB / 0.595 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/1.407, allocations: 4 kB / 0.595 GB, free: 10.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002396/1.41, allocations: 163.8 kB / 0.5951 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/1.413, allocations: 383 kB / 0.5955 GB, free: 9.938 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002824/1.413, allocations: 31.97 kB / 0.5955 GB, free: 9.906 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01309/1.426, allocations: 6.789 MB / 0.6022 GB, free: 2.555 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/1.426, allocations: 3.984 kB / 0.6022 GB, free: 2.551 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0087/1.435, allocations: 2.297 MB / 0.6044 GB, free: 180 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001379/1.436, allocations: 267.9 kB / 0.6047 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005189/1.437, allocations: 19.98 kB / 0.6047 GB, free: 15.87 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/1.439, allocations: 51.89 kB / 0.6047 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/1.439, allocations: 68.91 kB / 0.6048 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001796/1.439, allocations: 31.98 kB / 0.6048 GB, free: 15.72 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001983/1.441, allocations: 0.5776 MB / 0.6054 GB, free: 15.13 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.593e-06/1.441, allocations: 0 / 0.6054 GB, free: 15.13 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004876/1.446, allocations: 0.5547 MB / 0.6059 GB, free: 14.58 MB / 478.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 (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.002146/1.449, allocations: 428.2 kB / 0.6064 GB, free: 14.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01426/1.463, allocations: 3.235 MB / 0.6095 GB, free: 11.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.463, allocations: 4.375 kB / 0.6095 GB, free: 11.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004008/1.467, allocations: 1.141 MB / 0.6106 GB, free: 9.824 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003502/1.471, allocations: 284.7 kB / 0.6109 GB, free: 9.555 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01217/1.483, allocations: 3.004 MB / 0.6138 GB, free: 6.508 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002889/1.486, allocations: 1.241 MB / 0.615 GB, free: 5.238 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001203/1.487, allocations: 91.39 kB / 0.6151 GB, free: 5.148 MB / 478.1 MB Notification: Performance of SimCode: time 2.875e-06/1.487, allocations: 0 / 0.6151 GB, free: 5.148 MB / 478.1 MB Notification: Performance of Templates: time 0.131/1.618, allocations: 32.7 MB / 0.6471 GB, free: 4.48 MB / 0.4981 GB 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)