Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002321/0.002325, 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.465/3.465, allocations: 388.9 MB / 406.2 MB, free: 11.99 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.003331/0.003331, allocations: 223.9 kB / 451.6 MB, free: 14.57 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.6496/0.6496, allocations: 76.01 MB / 0.5594 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004267/0.0004268, allocations: 12 kB / 0.6216 GB, free: 114.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06704/0.06748, allocations: 53.23 MB / 0.6736 GB, free: 60.94 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005701/0.07323, allocations: 5.984 MB / 0.6794 GB, free: 54.93 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.00588/0.07913, allocations: 4.463 MB / 0.6838 GB, free: 50.45 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000361/0.07951, allocations: 39.75 kB / 0.6838 GB, free: 50.41 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008674/0.0882, allocations: 4.375 MB / 0.6881 GB, free: 46.03 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009554/0.08918, allocations: 461.6 kB / 0.6886 GB, free: 45.57 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.08983, allocations: 243.5 kB / 0.6888 GB, free: 45.34 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.00197/0.09182, allocations: 1.941 MB / 0.6907 GB, free: 43.39 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001059/0.0929, allocations: 0.7904 MB / 0.6915 GB, free: 42.56 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004308/0.09334, allocations: 378.5 kB / 0.6918 GB, free: 42.19 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005712/0.09393, allocations: 490.3 kB / 0.6923 GB, free: 41.71 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 9.356e-05/0.09405, allocations: 28 kB / 0.6923 GB, free: 41.68 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.09427, allocations: 75.88 kB / 0.6924 GB, free: 41.61 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.09454, allocations: 283.2 kB / 0.6927 GB, free: 41.33 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001492/0.0947, allocations: 169.3 kB / 0.6928 GB, free: 41.16 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006998/0.09541, allocations: 0.7987 MB / 0.6936 GB, free: 40.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.025e-05/0.09545, allocations: 0 / 0.6936 GB, free: 40.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.842e-06/0.09546, allocations: 0 / 0.6936 GB, free: 40.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.09548, allocations: 0 / 0.6936 GB, free: 40.36 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001467/0.09695, allocations: 0.892 MB / 0.6945 GB, free: 39.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.097, allocations: 8.828 kB / 0.6945 GB, free: 39.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004811/0.09749, allocations: 107 kB / 0.6946 GB, free: 39.29 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.09856, allocations: 0.5953 MB / 0.6952 GB, free: 38.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.669e-05/0.09866, allocations: 75.02 kB / 0.6952 GB, free: 38.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.09879, allocations: 59.94 kB / 0.6953 GB, free: 38.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.1002, allocations: 0.8059 MB / 0.6961 GB, free: 37.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.018e-05/0.1002, allocations: 7.906 kB / 0.6961 GB, free: 37.67 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.886e-05/0.1003, allocations: 20 kB / 0.6961 GB, free: 37.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.1004, allocations: 61.22 kB / 0.6962 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.1015, allocations: 0.5789 MB / 0.6967 GB, free: 37.01 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004044/0.1055, allocations: 2.939 MB / 0.6996 GB, free: 33.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008523/0.1064, allocations: 426.2 kB / 0.7 GB, free: 33.53 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003987/0.1068, allocations: 226.3 kB / 0.7002 GB, free: 33.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.1069, allocations: 4.328 kB / 0.7002 GB, free: 33.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005201/0.1074, allocations: 339.6 kB / 0.7005 GB, free: 32.94 MB / 442.7 MB Notification: Performance of pre-optimization done (n=42): time 3.108e-06/0.1074, allocations: 4 kB / 0.7006 GB, free: 32.94 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.003939/0.1114, allocations: 2.498 MB / 0.703 GB, free: 30.24 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.777e-05/0.1115, allocations: 136.5 kB / 0.7031 GB, free: 30.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004668/0.1119, allocations: 441.9 kB / 0.7035 GB, free: 29.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.182e-05/0.112, allocations: 41.69 kB / 0.7036 GB, free: 29.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.1122, allocations: 327.8 kB / 0.7039 GB, free: 29.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.1123, allocations: 165.7 kB / 0.7041 GB, free: 29.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.1124, allocations: 8 kB / 0.7041 GB, free: 29.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.826e-05/0.1125, allocations: 366.8 kB / 0.7044 GB, free: 28.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004033/0.1129, allocations: 229.2 kB / 0.7046 GB, free: 28.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004673/0.1134, allocations: 398.2 kB / 0.705 GB, free: 28.05 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.1156, allocations: 0.7541 MB / 0.7057 GB, free: 27.27 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.934e-06/0.1156, allocations: 11.94 kB / 0.7058 GB, free: 27.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001887/0.1175, allocations: 0.9707 MB / 0.7067 GB, free: 26.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.1175, allocations: 33.7 kB / 0.7067 GB, free: 26.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.1176, allocations: 4 kB / 0.7067 GB, free: 26.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.1186, allocations: 313.2 kB / 0.707 GB, free: 25.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.1197, allocations: 175.7 kB / 0.7072 GB, free: 25.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006147/0.1258, allocations: 4.852 MB / 0.7119 GB, free: 20.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/0.1263, allocations: 32.17 kB / 0.712 GB, free: 20.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.885e-05/0.1263, allocations: 31.98 kB / 0.712 GB, free: 20.56 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_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003578/0.1267, allocations: 299.3 kB / 0.7123 GB, free: 20.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-05/0.1268, allocations: 51.34 kB / 0.7123 GB, free: 20.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.1281, allocations: 0.8169 MB / 0.7131 GB, free: 19.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.841e-06/0.1281, allocations: 4 kB / 0.7131 GB, free: 19.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.527e-06/0.1281, allocations: 0 / 0.7131 GB, free: 19.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.958e-06/0.1281, allocations: 4 kB / 0.7131 GB, free: 19.32 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.1306, allocations: 1.684 MB / 0.7148 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/0.1306, allocations: 0 / 0.7148 GB, free: 17.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.1321, allocations: 199.8 kB / 0.715 GB, free: 17.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002422/0.1323, allocations: 78.52 kB / 0.7151 GB, free: 17.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.336e-05/0.1324, allocations: 8.094 kB / 0.7151 GB, free: 17.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/0.1346, allocations: 3.957 MB / 0.7189 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.726e-06/0.1347, allocations: 7.984 kB / 0.7189 GB, free: 12.85 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.1362, allocations: 1.118 MB / 0.72 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.1364, allocations: 172.4 kB / 0.7202 GB, free: 11.46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.432e-05/0.1365, allocations: 15.94 kB / 0.7202 GB, free: 11.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/0.1369, allocations: 19.98 kB / 0.7202 GB, free: 11.43 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.628e-05/0.137, allocations: 39.89 kB / 0.7203 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.137, allocations: 12 kB / 0.7203 GB, free: 11.38 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000334/0.1374, allocations: 315.1 kB / 0.7206 GB, free: 11.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.29e-07/0.1374, allocations: 0 / 0.7206 GB, free: 11.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007128/0.1381, allocations: 160 kB / 0.7207 GB, free: 10.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.phi_el,asm_Y_D.motor.w_el,asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1]) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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: 3 {(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.0001306/0.1382, allocations: 120 kB / 0.7208 GB, free: 10.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.14, allocations: 0.9758 MB / 0.7218 GB, free: 9.773 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.14, allocations: 0 / 0.7218 GB, free: 9.773 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007684/0.1408, allocations: 0.6447 MB / 0.7224 GB, free: 9.078 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007589/0.1416, allocations: 130.9 kB / 0.7225 GB, free: 8.953 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.1443, allocations: 2.034 MB / 0.7245 GB, free: 6.887 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.1447, allocations: 0.9955 MB / 0.7255 GB, free: 5.863 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004575/0.1452, allocations: 116.7 kB / 0.7256 GB, free: 5.746 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001316/0.1454, allocations: 39.44 kB / 0.7257 GB, free: 5.707 MB / 442.7 MB Notification: Performance of SimCode: time 1.396e-06/0.1454, allocations: 0 / 0.7257 GB, free: 5.707 MB / 442.7 MB Notification: Performance of Templates: time 0.2497/0.3951, allocations: 7.687 MB / 0.7332 GB, free: 126.7 MB / 442.7 MB