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.0007427/0.0007428, allocations: 88.42 kB / 16.31 MB, free: 6.453 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.0008968/0.0008969, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.258/1.258, allocations: 223.3 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2658/0.2658, allocations: 38.08 MB / 330.4 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003044, allocations: 11.98 kB / 400.1 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2785, allocations: 59.15 MB / 459.2 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007324/0.2859, allocations: 7.557 MB / 466.8 MB, free: 24.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007013/0.293, allocations: 4.797 MB / 471.6 MB, free: 21.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001265/0.2943, allocations: 53 kB / 471.6 MB, free: 21.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008581/0.3029, allocations: 4.479 MB / 476.1 MB, free: 20.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001589/0.3045, allocations: 0.5165 MB / 476.6 MB, free: 19.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3056, allocations: 411 kB / 477 MB, free: 19.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.3081, allocations: 2.569 MB / 479.6 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.3095, allocations: 1.032 MB / 480.6 MB, free: 17.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007355/0.3102, allocations: 0.5365 MB / 481.2 MB, free: 17.15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007757/0.311, allocations: 0.7099 MB / 481.9 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3111, allocations: 49.84 kB / 481.9 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002178/0.3113, allocations: 66.7 kB / 482 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003093/0.3116, allocations: 369.2 kB / 482.4 MB, free: 16.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002198/0.3119, allocations: 236.5 kB / 482.6 MB, free: 16.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000902/0.3128, allocations: 1.249 MB / 483.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3128, allocations: 0 / 483.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3128, allocations: 4 kB / 483.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.3128, allocations: 0 / 483.8 MB, free: 15.39 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.001996/0.3148, allocations: 1.238 MB / 485.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.3149, allocations: 12.03 kB / 485.1 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000307/0.3152, allocations: 130.5 kB / 485.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.3164, allocations: 0.8472 MB / 486.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.3165, allocations: 69.98 kB / 486.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.3166, allocations: 99.89 kB / 486.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.318, allocations: 1.221 MB / 487.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.3181, allocations: 7.953 kB / 487.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.652e-05/0.3181, allocations: 35.98 kB / 487.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001615/0.3183, allocations: 73.95 kB / 487.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.3196, allocations: 1.007 MB / 488.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004268/0.3239, allocations: 4.441 MB / 493 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009908/0.3249, allocations: 0.8964 MB / 493.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005327/0.3254, allocations: 449.8 kB / 494.4 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.474e-05/0.3255, allocations: 13.3 kB / 494.4 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.3255, allocations: 43.12 kB / 494.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=70): time 2.304e-06/0.3255, allocations: 0 / 494.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.004953/0.3305, allocations: 3.33 MB / 497.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.743e-05/0.3305, allocations: 149 kB / 497.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005625/0.3311, allocations: 0.6764 MB / 498.6 MB, free: 116 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.3311, allocations: 41.73 kB / 498.6 MB, free: 68 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003039/0.3315, allocations: 479.3 kB / 499.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001939/0.3317, allocations: 260.2 kB / 499.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.253e-05/0.3317, allocations: 16 kB / 499.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3318, allocations: 334 kB / 499.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005725/0.3324, allocations: 373.8 kB / 0.4883 GB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007106/0.3331, allocations: 0.5939 MB / 0.4889 GB, free: 13.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005849/0.339, allocations: 1.519 MB / 0.4904 GB, free: 12.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.339, allocations: 4 kB / 0.4904 GB, free: 12.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004987/0.344, allocations: 2.048 MB / 0.4924 GB, free: 10.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001736/0.3442, allocations: 291.9 kB / 0.4927 GB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.3442, allocations: 11.94 kB / 0.4927 GB, free: 9.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00405/0.3483, allocations: 1.047 MB / 0.4937 GB, free: 8.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004905/0.3488, allocations: 139.7 kB / 0.4938 GB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01359/0.3624, allocations: 9.223 MB / 0.5028 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.363, allocations: 48 kB / 0.5029 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.433e-05/0.3631, allocations: 35.98 kB / 0.5029 GB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.135e-06/0.3631, allocations: 4 kB / 0.5029 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004607/0.3677, allocations: 1.84 MB / 0.5047 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3677, allocations: 8 kB / 0.5047 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003884/0.3716, allocations: 0.9969 MB / 0.5057 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.3721, allocations: 131.8 kB / 0.5058 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01251/0.3847, allocations: 8.964 MB / 0.5146 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005808/0.3853, allocations: 36.05 kB / 0.5146 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.708e-05/0.3853, allocations: 39.98 kB / 0.5146 GB, free: 2.812 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 (65): * Single equations (assignments): 63 * 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 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006065/0.386, allocations: 412.9 kB / 0.515 GB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001581/0.3861, allocations: 90.88 kB / 0.5151 GB, free: 2.309 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.3881, allocations: 1.253 MB / 0.5163 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.577e-06/0.3881, allocations: 12 kB / 0.5164 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.3881, allocations: 0 / 0.5164 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3881, allocations: 3.984 kB / 0.5164 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003515/0.3917, allocations: 2.414 MB / 0.5187 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.3917, allocations: 0 / 0.5187 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.3925, allocations: 159.8 kB / 0.5189 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004131/0.3929, allocations: 151.4 kB / 0.519 GB, free: 14.12 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.929e-05/0.393, allocations: 23.98 kB / 0.519 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003669/0.3966, allocations: 5.401 MB / 0.5243 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.3967, allocations: 4.031 kB / 0.5243 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.3991, allocations: 1.868 MB / 0.5261 GB, free: 6.223 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.3994, allocations: 235.9 kB / 0.5264 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.3996, allocations: 19.98 kB / 0.5264 GB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004236/0.4, allocations: 31.98 kB / 0.5264 GB, free: 5.922 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.4001, allocations: 68.55 kB / 0.5265 GB, free: 5.855 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.886e-05/0.4002, allocations: 23.98 kB / 0.5265 GB, free: 5.832 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005138/0.4007, allocations: 475 kB / 0.527 GB, free: 5.375 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4007, allocations: 4 kB / 0.527 GB, free: 5.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001553/0.4023, allocations: 456 kB / 0.5274 GB, free: 4.926 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 (79): * Single equations (assignments): 74 * 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 {(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.0001531/0.4024, allocations: 124.1 kB / 0.5275 GB, free: 4.793 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004373/0.4068, allocations: 2.587 MB / 0.53 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4068, allocations: 0 / 0.53 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.408, allocations: 0.9213 MB / 0.5309 GB, free: 1.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.409, allocations: 227.3 kB / 0.5312 GB, free: 0.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.4127, allocations: 2.926 MB / 0.534 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007818/0.4135, allocations: 1.174 MB / 0.5352 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006838/0.4141, allocations: 199.1 kB / 0.5354 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.4144, allocations: 75.41 kB / 0.5354 GB, free: 12.52 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4144, allocations: 7.938 kB / 0.5354 GB, free: 12.51 MB / 414.1 MB Notification: Performance of Templates: time 0.03124/0.4456, allocations: 22.6 MB / 0.5575 GB, free: 6.035 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: