Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_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.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002374/0.002374, allocations: 356.6 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.145/3.145, allocations: 388.9 MB / 406.2 MB, free: 6.848 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003414/0.003414, allocations: 228.9 kB / 451.6 MB, free: 0.5781 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.6347/0.6347, allocations: 76.02 MB / 0.5594 GB, free: 14.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004875/0.0004877, allocations: 12 kB / 0.6216 GB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2606, allocations: 53.2 MB / 0.6736 GB, free: 62.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007201/0.2678, allocations: 7.218 MB / 0.6806 GB, free: 55.4 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004391/0.2723, allocations: 3.094 MB / 0.6837 GB, free: 52.32 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005184/0.2728, allocations: 52.47 kB / 0.6837 GB, free: 52.27 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005628/0.2734, allocations: 231.3 kB / 0.6839 GB, free: 52.04 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.2748, allocations: 0.6293 MB / 0.6845 GB, free: 51.41 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008683/0.2756, allocations: 370 kB / 0.6849 GB, free: 51.05 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.277, allocations: 1.535 MB / 0.6864 GB, free: 49.52 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001144/0.2782, allocations: 0.9483 MB / 0.6873 GB, free: 48.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004246/0.2786, allocations: 430.1 kB / 0.6877 GB, free: 48.1 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006568/0.2793, allocations: 0.576 MB / 0.6883 GB, free: 47.52 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.2794, allocations: 44 kB / 0.6883 GB, free: 47.48 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004428/0.2799, allocations: 275.5 kB / 0.6886 GB, free: 47.21 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.2802, allocations: 323 kB / 0.6889 GB, free: 46.89 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001828/0.2804, allocations: 217.1 kB / 0.6891 GB, free: 46.67 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.2814, allocations: 1.259 MB / 0.6903 GB, free: 45.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.965e-06/0.2814, allocations: 0 / 0.6903 GB, free: 45.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.606e-06/0.2815, allocations: 0 / 0.6903 GB, free: 45.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.2815, allocations: 4 kB / 0.6904 GB, free: 45.41 MB / 346.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.002274/0.2838, allocations: 1.207 MB / 0.6915 GB, free: 44.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.2838, allocations: 12.02 kB / 0.6915 GB, free: 44.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007591/0.2846, allocations: 154.6 kB / 0.6917 GB, free: 43.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.286, allocations: 0.7538 MB / 0.6924 GB, free: 43.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.964e-05/0.286, allocations: 65.92 kB / 0.6925 GB, free: 43.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/0.2863, allocations: 88 kB / 0.6926 GB, free: 43.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001827/0.2881, allocations: 1.12 MB / 0.6937 GB, free: 41.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.546e-05/0.2882, allocations: 7.859 kB / 0.6937 GB, free: 41.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.574e-05/0.2883, allocations: 32 kB / 0.6937 GB, free: 41.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001051/0.2884, allocations: 65.97 kB / 0.6938 GB, free: 41.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/0.2902, allocations: 0.9368 MB / 0.6947 GB, free: 40.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006028/0.2963, allocations: 4.422 MB / 0.699 GB, free: 36.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.2974, allocations: 0.6818 MB / 0.6997 GB, free: 35.46 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006685/0.2981, allocations: 350 kB / 0.7 GB, free: 35.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.041e-05/0.2982, allocations: 13.02 kB / 0.7 GB, free: 35.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.2982, allocations: 47.06 kB / 0.7001 GB, free: 35.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=57): time 2.975e-06/0.2982, allocations: 0 / 0.7001 GB, free: 35.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=62): time 0.004845/0.3031, allocations: 2.606 MB / 0.7026 GB, free: 32.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.3032, allocations: 133.1 kB / 0.7027 GB, free: 32.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008007/0.304, allocations: 0.6487 MB / 0.7034 GB, free: 31.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.304, allocations: 33.7 kB / 0.7034 GB, free: 31.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002635/0.3043, allocations: 475 kB / 0.7038 GB, free: 31.03 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001518/0.3045, allocations: 216.9 kB / 0.7041 GB, free: 30.81 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.3045, allocations: 16 kB / 0.7041 GB, free: 30.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3046, allocations: 398.7 kB / 0.7044 GB, free: 30.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005362/0.3052, allocations: 269.8 kB / 0.7047 GB, free: 30.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006637/0.3059, allocations: 0.4957 MB / 0.7052 GB, free: 29.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002857/0.3087, allocations: 0.8179 MB / 0.706 GB, free: 28.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.3088, allocations: 0 / 0.706 GB, free: 28.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00331/0.3121, allocations: 1.39 MB / 0.7073 GB, free: 27.28 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.3122, allocations: 294.2 kB / 0.7076 GB, free: 26.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.3122, allocations: 11.94 kB / 0.7076 GB, free: 26.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001903/0.3141, allocations: 466.4 kB / 0.7081 GB, free: 26.42 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.3148, allocations: 139.8 kB / 0.7082 GB, free: 26.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009105/0.3239, allocations: 6.142 MB / 0.7142 GB, free: 19.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006249/0.3245, allocations: 43.88 kB / 0.7143 GB, free: 19.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/0.3246, allocations: 32 kB / 0.7143 GB, free: 19.8 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.992e-06/0.3246, allocations: 11.94 kB / 0.7143 GB, free: 19.79 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002825/0.3275, allocations: 1.175 MB / 0.7154 GB, free: 18.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3275, allocations: 8 kB / 0.7155 GB, free: 18.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001751/0.3293, allocations: 425.6 kB / 0.7159 GB, free: 18.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006338/0.3299, allocations: 147.7 kB / 0.716 GB, free: 18.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008247/0.3382, allocations: 5.919 MB / 0.7218 GB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/0.3388, allocations: 39.92 kB / 0.7218 GB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.181e-05/0.3389, allocations: 32 kB / 0.7218 GB, free: 11.76 MB / 346.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.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * 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 (69): * Single equations (assignments): 67 * 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 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.00054/0.3395, allocations: 396.8 kB / 0.7222 GB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.3397, allocations: 75.06 kB / 0.7223 GB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.3411, allocations: 0.7416 MB / 0.723 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.464e-06/0.3412, allocations: 8 kB / 0.723 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.814e-06/0.3412, allocations: 4 kB / 0.723 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.96e-06/0.3412, allocations: 3.984 kB / 0.723 GB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/0.3443, allocations: 1.755 MB / 0.7248 GB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.192e-06/0.3443, allocations: 0 / 0.7248 GB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008964/0.3452, allocations: 139.8 kB / 0.7249 GB, free: 8.543 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001043/0.3453, allocations: 24.8 kB / 0.7249 GB, free: 8.516 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-05/0.3454, allocations: 24.02 kB / 0.7249 GB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007976/0.3462, allocations: 1.287 MB / 0.7262 GB, free: 7.074 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.639e-06/0.3462, allocations: 3.938 kB / 0.7262 GB, free: 7.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.3481, allocations: 1.193 MB / 0.7274 GB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003059/0.3484, allocations: 216 kB / 0.7276 GB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.3486, allocations: 19.94 kB / 0.7276 GB, free: 5.602 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.3491, allocations: 35.97 kB / 0.7276 GB, free: 5.566 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.3493, allocations: 36.52 kB / 0.7277 GB, free: 5.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.771e-05/0.3493, allocations: 19.98 kB / 0.7277 GB, free: 5.512 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000592/0.3499, allocations: 451 kB / 0.7281 GB, free: 5.078 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.23e-07/0.3499, allocations: 0 / 0.7281 GB, free: 5.078 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001613/0.3516, allocations: 412 kB / 0.7285 GB, free: 4.676 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],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 (66): * Single equations (assignments): 64 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002901/0.3519, allocations: 147 kB / 0.7286 GB, free: 4.523 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003317/0.3552, allocations: 1.893 MB / 0.7305 GB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3552, allocations: 1.375 kB / 0.7305 GB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.3559, allocations: 449.8 kB / 0.7309 GB, free: 2.129 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.3571, allocations: 200.1 kB / 0.7311 GB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/0.3607, allocations: 2.5 MB / 0.7335 GB, free: 15.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001093/0.3619, allocations: 1.119 MB / 0.7346 GB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009746/0.3628, allocations: 214.2 kB / 0.7348 GB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002339/0.3631, allocations: 63.42 kB / 0.7349 GB, free: 13.97 MB / 362.7 MB Notification: Performance of SimCode: time 1.39e-06/0.3631, allocations: 0 / 0.7349 GB, free: 13.97 MB / 362.7 MB Notification: Performance of Templates: time 0.03537/0.3985, allocations: 15.47 MB / 0.75 GB, free: 14.59 MB / 378.7 MB