Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.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.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009097/0.0009099, allocations: 93.88 kB / 16.3 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.0009026/0.0009027, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.224/1.224, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2669/0.2669, allocations: 38.07 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002526/0.0002526, allocations: 8 kB / 400 MB, free: 9.316 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2434, allocations: 59.16 MB / 459.1 MB, free: 30.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.00666/0.2501, allocations: 7.228 MB / 466.3 MB, free: 25.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007698/0.2578, allocations: 4.759 MB / 471.1 MB, free: 21.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001338/0.2592, allocations: 51.66 kB / 471.2 MB, free: 21.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005609/0.2648, allocations: 1.757 MB / 472.9 MB, free: 21.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001665/0.2665, allocations: 438.5 kB / 473.3 MB, free: 20.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.2682, allocations: 408.9 kB / 473.7 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001596/0.2698, allocations: 0.9118 MB / 474.7 MB, free: 20.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001434/0.2713, allocations: 1.025 MB / 475.7 MB, free: 19.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006478/0.2719, allocations: 485.6 kB / 476.2 MB, free: 19.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007528/0.2727, allocations: 0.5295 MB / 476.7 MB, free: 19.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.2728, allocations: 50.88 kB / 476.7 MB, free: 19.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.273, allocations: 60.23 kB / 476.8 MB, free: 19.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003158/0.2734, allocations: 350.1 kB / 477.1 MB, free: 19.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.2736, allocations: 229.1 kB / 477.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009107/0.2745, allocations: 1.24 MB / 478.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.2745, allocations: 0 / 478.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2745, allocations: 0 / 478.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.2745, allocations: 0 / 478.6 MB, free: 18.05 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002212/0.2768, allocations: 1.246 MB / 479.8 MB, free: 17.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.2768, allocations: 8.938 kB / 479.9 MB, free: 17.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/0.2772, allocations: 136 kB / 480 MB, free: 17.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.2787, allocations: 0.8524 MB / 480.8 MB, free: 16.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.835e-05/0.2787, allocations: 64.84 kB / 480.9 MB, free: 16.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001553/0.2789, allocations: 94.77 kB / 481 MB, free: 16.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001696/0.2806, allocations: 1.211 MB / 482.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.963e-05/0.2806, allocations: 11.06 kB / 482.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.2807, allocations: 35.69 kB / 482.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002009/0.2809, allocations: 70.8 kB / 482.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001462/0.2824, allocations: 1.014 MB / 483.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004866/0.2873, allocations: 4.454 MB / 487.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.2883, allocations: 0.8965 MB / 488.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.2884, allocations: 13.39 kB / 488.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.2884, allocations: 47.02 kB / 488.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 1.893e-06/0.2884, allocations: 0 / 488.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.005037/0.2934, allocations: 3.511 MB / 492.3 MB, free: 6.336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.2935, allocations: 141.1 kB / 492.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005485/0.294, allocations: 0.6804 MB / 493.1 MB, free: 5.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.665e-05/0.2941, allocations: 41.7 kB / 493.1 MB, free: 5.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001988/0.2943, allocations: 475.3 kB / 493.6 MB, free: 4.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.2944, allocations: 260.3 kB / 493.8 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.2945, allocations: 16 kB / 493.8 MB, free: 4.684 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.676e-05/0.2945, allocations: 338 kB / 494.2 MB, free: 4.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004803/0.295, allocations: 377.8 kB / 494.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/0.2956, allocations: 0.586 MB / 495.1 MB, free: 3.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005456/0.301, allocations: 1.523 MB / 496.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.3011, allocations: 0 / 496.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004822/0.3059, allocations: 2.151 MB / 498.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008516/0.3068, allocations: 2.527 MB / 0.4896 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.3068, allocations: 8 kB / 0.4896 GB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004402/0.3112, allocations: 1.063 MB / 0.4906 GB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004805/0.3117, allocations: 127.8 kB / 0.4908 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/0.3266, allocations: 10.99 MB / 0.5015 GB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006621/0.3272, allocations: 47.91 kB / 0.5015 GB, free: 168 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.3273, allocations: 39.98 kB / 0.5016 GB, free: 128 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.3273, allocations: 4 kB / 0.5016 GB, free: 124 kB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004826/0.3322, allocations: 1.94 MB / 0.5035 GB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.3322, allocations: 8 kB / 0.5035 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00417/0.3364, allocations: 1.025 MB / 0.5045 GB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.3368, allocations: 127.8 kB / 0.5046 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01413/0.351, allocations: 10.69 MB / 0.515 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006149/0.3516, allocations: 40.03 kB / 0.5151 GB, free: 1.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-05/0.3517, allocations: 39.98 kB / 0.5151 GB, free: 1.789 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,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 (64): * Single equations (assignments): 61 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0005828/0.3523, allocations: 412.9 kB / 0.5155 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.3524, allocations: 90.86 kB / 0.5156 GB, free: 1.285 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.3544, allocations: 1.357 MB / 0.5169 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.3544, allocations: 12 kB / 0.5169 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.3544, allocations: 3.953 kB / 0.5169 GB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.3545, allocations: 7.984 kB / 0.5169 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00343/0.3579, allocations: 2.494 MB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.3579, allocations: 8 kB / 0.5194 GB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007399/0.3586, allocations: 155.8 kB / 0.5195 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004641/0.3591, allocations: 180 kB / 0.5197 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.552e-05/0.3592, allocations: 23.98 kB / 0.5197 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004245/0.3634, allocations: 6.825 MB / 0.5264 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3635, allocations: 7.984 kB / 0.5264 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.3659, allocations: 2.009 MB / 0.5284 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003446/0.3663, allocations: 239.8 kB / 0.5286 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.3664, allocations: 16 kB / 0.5286 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.3669, allocations: 39.97 kB / 0.5286 GB, free: 2.867 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.367, allocations: 56.61 kB / 0.5287 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.232e-05/0.367, allocations: 27.98 kB / 0.5287 GB, free: 2.785 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005078/0.3675, allocations: 479 kB / 0.5292 GB, free: 2.324 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3676, allocations: 0 / 0.5292 GB, free: 2.324 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001542/0.3691, allocations: 464 kB / 0.5296 GB, free: 1.871 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (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_rq[1],asm_ctrl.motor.phiRotorflux,loadInertia.w,frictTorq.phi,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001646/0.3693, allocations: 116.1 kB / 0.5297 GB, free: 1.746 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00445/0.3737, allocations: 2.839 MB / 0.5325 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3737, allocations: 4 kB / 0.5325 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.375, allocations: 1.036 MB / 0.5335 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009055/0.3759, allocations: 216.4 kB / 0.5337 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.3796, allocations: 2.924 MB / 0.5366 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008061/0.3804, allocations: 1.205 MB / 0.5378 GB, free: 9.324 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006315/0.3811, allocations: 207 kB / 0.538 GB, free: 9.117 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002/0.3813, allocations: 67.42 kB / 0.538 GB, free: 9.051 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3813, allocations: 0 / 0.538 GB, free: 9.051 MB / 414.1 MB Notification: Performance of Templates: time 0.02975/0.411, allocations: 22.87 MB / 0.5604 GB, free: 2.297 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: