Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002291/0.002294, allocations: 352.4 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.404/3.404, allocations: 388.9 MB / 406.2 MB, free: 12.02 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003454/0.003453, allocations: 225.6 kB / 451.6 MB, free: 14.61 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6443/0.6443, allocations: 76 MB / 0.5594 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005108/0.0005111, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06601/0.06654, allocations: 53.23 MB / 0.6736 GB, free: 60.82 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007228/0.07381, allocations: 7.42 MB / 0.6809 GB, free: 53.36 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006518/0.08036, allocations: 4.752 MB / 0.6855 GB, free: 48.6 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005346/0.08092, allocations: 51.69 kB / 0.6855 GB, free: 48.55 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007803/0.08874, allocations: 4.441 MB / 0.6899 GB, free: 44.1 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.08978, allocations: 0.5205 MB / 0.6904 GB, free: 43.58 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009765/0.09077, allocations: 395.2 kB / 0.6908 GB, free: 43.19 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002424/0.0932, allocations: 2.538 MB / 0.6932 GB, free: 40.64 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.09437, allocations: 1.011 MB / 0.6942 GB, free: 39.59 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004902/0.09488, allocations: 0.5134 MB / 0.6947 GB, free: 39.07 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008531/0.09574, allocations: 0.7045 MB / 0.6954 GB, free: 38.37 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.09589, allocations: 48 kB / 0.6955 GB, free: 38.32 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002289/0.09613, allocations: 59.98 kB / 0.6955 GB, free: 38.26 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003639/0.09651, allocations: 374.9 kB / 0.6959 GB, free: 37.89 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.09674, allocations: 225.1 kB / 0.6961 GB, free: 37.67 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009897/0.09774, allocations: 1.223 MB / 0.6973 GB, free: 36.44 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.811e-06/0.09776, allocations: 0 / 0.6973 GB, free: 36.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.09777, allocations: 0 / 0.6973 GB, free: 36.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.09779, allocations: 0 / 0.6973 GB, free: 36.44 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002359/0.1002, allocations: 1.218 MB / 0.6985 GB, free: 35.17 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.1002, allocations: 12.83 kB / 0.6985 GB, free: 35.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004519/0.1007, allocations: 130.5 kB / 0.6986 GB, free: 35.03 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001688/0.1024, allocations: 0.8239 MB / 0.6994 GB, free: 34.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.573e-05/0.1024, allocations: 73.91 kB / 0.6995 GB, free: 34.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001682/0.1026, allocations: 87.91 kB / 0.6996 GB, free: 34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.1046, allocations: 1.182 MB / 0.7007 GB, free: 32.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.689e-05/0.1047, allocations: 7.984 kB / 0.7007 GB, free: 32.77 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.1048, allocations: 35.98 kB / 0.7008 GB, free: 32.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002104/0.105, allocations: 81.84 kB / 0.7009 GB, free: 32.65 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00193/0.107, allocations: 0.9876 MB / 0.7018 GB, free: 31.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006336/0.1133, allocations: 4.226 MB / 0.7059 GB, free: 27.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.1147, allocations: 0.8848 MB / 0.7068 GB, free: 26.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007727/0.1155, allocations: 436.1 kB / 0.7072 GB, free: 25.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.626e-05/0.1156, allocations: 16.48 kB / 0.7072 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.1156, allocations: 51.05 kB / 0.7073 GB, free: 25.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=69): time 3.173e-06/0.1157, allocations: 4 kB / 0.7073 GB, free: 25.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=72): time 0.006567/0.1222, allocations: 3.685 MB / 0.7109 GB, free: 21.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1223, allocations: 141 kB / 0.711 GB, free: 21.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007469/0.1231, allocations: 0.6567 MB / 0.7117 GB, free: 21.12 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-05/0.1231, allocations: 41.7 kB / 0.7117 GB, free: 21.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002683/0.1234, allocations: 459.5 kB / 0.7121 GB, free: 20.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001825/0.1236, allocations: 252.3 kB / 0.7124 GB, free: 20.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.1237, allocations: 20 kB / 0.7124 GB, free: 20.35 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1238, allocations: 390.8 kB / 0.7128 GB, free: 19.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007519/0.1246, allocations: 373.8 kB / 0.7131 GB, free: 19.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008365/0.1254, allocations: 0.5726 MB / 0.7137 GB, free: 18.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007208/0.1326, allocations: 1.519 MB / 0.7152 GB, free: 17.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.974e-06/0.1327, allocations: 0 / 0.7152 GB, free: 17.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.006072/0.1388, allocations: 2.032 MB / 0.7172 GB, free: 15.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.942e-05/0.1389, allocations: 266.2 kB / 0.7174 GB, free: 14.99 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.1389, allocations: 4 kB / 0.7174 GB, free: 14.99 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005229/0.1441, allocations: 1.051 MB / 0.7184 GB, free: 13.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006223/0.1448, allocations: 131.8 kB / 0.7186 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01591/0.1607, allocations: 9.116 MB / 0.7275 GB, free: 4.406 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006233/0.1614, allocations: 40.03 kB / 0.7275 GB, free: 4.367 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.505e-05/0.1615, allocations: 39.98 kB / 0.7275 GB, free: 4.328 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.603e-06/0.1615, allocations: 4 kB / 0.7276 GB, free: 4.324 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005558/0.167, allocations: 1.829 MB / 0.7293 GB, free: 2.469 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1671, allocations: 4 kB / 0.7293 GB, free: 2.465 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005069/0.1722, allocations: 1.001 MB / 0.7303 GB, free: 1.457 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006112/0.1728, allocations: 131.7 kB / 0.7304 GB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2508/0.4236, allocations: 8.9 MB / 0.7391 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006635/0.4243, allocations: 35.81 kB / 0.7392 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.4244, allocations: 39.39 kB / 0.7392 GB, free: 123.7 MB / 442.7 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: 27 * Number of states: 0 () * 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 initialization (63): * 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: 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.0006572/0.4251, allocations: 405.7 kB / 0.7396 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/0.4253, allocations: 85.38 kB / 0.7397 GB, free: 123.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/0.4278, allocations: 1.251 MB / 0.7409 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.4278, allocations: 10.69 kB / 0.7409 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.026e-06/0.4279, allocations: 6.547 kB / 0.7409 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.4279, allocations: 6.5 kB / 0.7409 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/0.4325, allocations: 2.378 MB / 0.7432 GB, free: 121.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.4325, allocations: 1.281 kB / 0.7432 GB, free: 121.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.4336, allocations: 168.2 kB / 0.7434 GB, free: 121.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005808/0.4342, allocations: 153 kB / 0.7435 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-05/0.4343, allocations: 29.59 kB / 0.7436 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003667/0.438, allocations: 5.391 MB / 0.7488 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.971e-06/0.4381, allocations: 3.781 kB / 0.7488 GB, free: 116.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00329/0.4414, allocations: 1.855 MB / 0.7507 GB, free: 115.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003482/0.4417, allocations: 228.3 kB / 0.7509 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001379/0.4419, allocations: 21.42 kB / 0.7509 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005843/0.4425, allocations: 42.41 kB / 0.7509 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4427, allocations: 55.48 kB / 0.751 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.4427, allocations: 23.27 kB / 0.751 GB, free: 115.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006546/0.4434, allocations: 455.1 kB / 0.7514 GB, free: 114.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.5e-07/0.4434, allocations: 2.438 kB / 0.7514 GB, free: 114.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001922/0.4454, allocations: 456.5 kB / 0.7519 GB, free: 114.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.phi_el,asm_ctrl.motor.w_el,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,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.0001718/0.4455, allocations: 126.3 kB / 0.752 GB, free: 114.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005395/0.4509, allocations: 2.497 MB / 0.7544 GB, free: 113.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.623e-06/0.451, allocations: 0 / 0.7544 GB, free: 113.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.4525, allocations: 0.9273 MB / 0.7553 GB, free: 112.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/0.4539, allocations: 214.1 kB / 0.7556 GB, free: 112.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.4582, allocations: 2.861 MB / 0.7583 GB, free: 111.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009019/0.4591, allocations: 1.188 MB / 0.7595 GB, free: 110.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009384/0.46, allocations: 201.5 kB / 0.7597 GB, free: 110.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.4604, allocations: 73 kB / 0.7598 GB, free: 110.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.355e-06/0.4604, allocations: 1 kB / 0.7598 GB, free: 110.6 MB / 442.7 MB Notification: Performance of Templates: time 0.04106/0.5014, allocations: 22.3 MB / 0.7815 GB, free: 104.1 MB / 442.7 MB