Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002583/0.002583, allocations: 361.4 kB / 17.21 MB, free: 4.953 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.715/3.715, allocations: 388.9 MB / 406.8 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.003569/0.003569, allocations: 225.7 kB / 452.2 MB, free: 14.59 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.7391/0.7391, allocations: 76 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004426/0.0004428, allocations: 16 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08814/0.0886, allocations: 53.22 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4597/0.5484, allocations: 107.6 MB / 0.7793 GB, free: 81.01 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.5488, allocations: 100.6 kB / 0.7794 GB, free: 81.01 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1011/0.6499, allocations: 25.74 MB / 0.8046 GB, free: 70.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.6499, allocations: 0 / 0.8046 GB, free: 70.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.084e-05/0.65, allocations: 19.75 kB / 0.8046 GB, free: 70.22 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002921/0.6529, allocations: 1.026 MB / 0.8056 GB, free: 69.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.653, allocations: 10.5 kB / 0.8056 GB, free: 69.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007121/0.6537, allocations: 106.3 kB / 0.8057 GB, free: 69.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/0.6559, allocations: 0.7307 MB / 0.8064 GB, free: 69.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/0.656, allocations: 89.22 kB / 0.8065 GB, free: 68.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.6562, allocations: 65.78 kB / 0.8065 GB, free: 68.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.6584, allocations: 0.9609 MB / 0.8075 GB, free: 68.62 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.966e-05/0.6585, allocations: 17.78 kB / 0.8075 GB, free: 68.61 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001054/0.6586, allocations: 30.47 kB / 0.8075 GB, free: 68.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/0.6588, allocations: 48.23 kB / 0.8076 GB, free: 68.6 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.6609, allocations: 0.7746 MB / 0.8083 GB, free: 68.48 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 preOpt removeSimpleEquations (simulation): time 0.006862/0.6678, allocations: 3.856 MB / 0.8121 GB, free: 65.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.669, allocations: 435.9 kB / 0.8125 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007423/0.6697, allocations: 278.9 kB / 0.8128 GB, free: 64.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.89e-05/0.6698, allocations: 4 kB / 0.8128 GB, free: 64.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.6698, allocations: 41.88 kB / 0.8128 GB, free: 64.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 3.005e-06/0.6699, allocations: 0 / 0.8128 GB, free: 64.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01812/0.688, allocations: 3.988 MB / 0.8167 GB, free: 61.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.6881, allocations: 112.4 kB / 0.8168 GB, free: 61.06 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008132/0.6889, allocations: 0.5023 MB / 0.8173 GB, free: 60.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.689, allocations: 33.58 kB / 0.8173 GB, free: 60.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.6893, allocations: 401.1 kB / 0.8177 GB, free: 60.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001913/0.6895, allocations: 193.4 kB / 0.8179 GB, free: 60.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.734e-05/0.6896, allocations: 8.812 kB / 0.8179 GB, free: 60.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.6897, allocations: 373.5 kB / 0.8183 GB, free: 59.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007377/0.6904, allocations: 283 kB / 0.8185 GB, free: 59.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008183/0.6913, allocations: 0.511 MB / 0.819 GB, free: 59.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008588/0.6921, allocations: 373.4 kB / 0.8194 GB, free: 58.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.6922, allocations: 4 kB / 0.8194 GB, free: 58.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005397/0.6976, allocations: 1.597 MB / 0.821 GB, free: 57.62 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.6976, allocations: 8.25 kB / 0.821 GB, free: 57.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.6977, allocations: 12 kB / 0.821 GB, free: 57.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00275/0.7004, allocations: 497.7 kB / 0.8215 GB, free: 57.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007774/0.7012, allocations: 119.3 kB / 0.8216 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.7158, allocations: 9.976 MB / 0.8313 GB, free: 48.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009435/0.7168, allocations: 31.05 kB / 0.8313 GB, free: 48.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.408e-05/0.7169, allocations: 38.95 kB / 0.8314 GB, free: 48.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (59): * Single equations (assignments): 54 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006228/0.7176, allocations: 309 kB / 0.8317 GB, free: 47.79 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/0.7177, allocations: 59.25 kB / 0.8317 GB, free: 47.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00504/0.7228, allocations: 1.453 MB / 0.8332 GB, free: 46.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.7228, allocations: 11.94 kB / 0.8332 GB, free: 46.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.7229, allocations: 4 kB / 0.8332 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.244e-05/0.7229, allocations: 0 / 0.8332 GB, free: 46.19 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006762/0.7297, allocations: 2.377 MB / 0.8355 GB, free: 43.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.7297, allocations: 0 / 0.8355 GB, free: 43.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005603/0.7303, allocations: 59.97 kB / 0.8355 GB, free: 43.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002564/0.7329, allocations: 483.8 kB / 0.836 GB, free: 43.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.93e-05/0.733, allocations: 21.92 kB / 0.836 GB, free: 43.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.7465, allocations: 9.726 MB / 0.8455 GB, free: 32.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.7466, allocations: 7.938 kB / 0.8455 GB, free: 32.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00578/0.7524, allocations: 1.973 MB / 0.8475 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004015/0.7528, allocations: 192.3 kB / 0.8476 GB, free: 30.44 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.7529, allocations: 12 kB / 0.8477 GB, free: 30.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006429/0.7536, allocations: 23.98 kB / 0.8477 GB, free: 30.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.7538, allocations: 60.53 kB / 0.8477 GB, free: 30.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.874e-05/0.7539, allocations: 20 kB / 0.8478 GB, free: 30.33 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005665/0.7545, allocations: 354.8 kB / 0.8481 GB, free: 29.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.7545, allocations: 0 / 0.8481 GB, free: 29.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001375/0.7559, allocations: 240 kB / 0.8483 GB, free: 29.75 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_el) * 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 (29): * Single equations (assignments): 23 * 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: 4 {(3,100.0%) 8,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.000281/0.7562, allocations: 163.1 kB / 0.8485 GB, free: 29.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003556/0.7598, allocations: 1.486 MB / 0.8499 GB, free: 28.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.7598, allocations: 0 / 0.8499 GB, free: 28.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/0.7625, allocations: 1.111 MB / 0.851 GB, free: 26.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001504/0.764, allocations: 177.4 kB / 0.8512 GB, free: 26.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/0.7677, allocations: 2.023 MB / 0.8532 GB, free: 24.64 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006812/0.7684, allocations: 1.075 MB / 0.8542 GB, free: 23.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006553/0.7691, allocations: 101.7 kB / 0.8543 GB, free: 23.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.7692, allocations: 35.44 kB / 0.8543 GB, free: 23.4 MB / 442.7 MB Notification: Performance of SimCode: time 1.413e-06/0.7693, allocations: 4 kB / 0.8543 GB, free: 23.39 MB / 442.7 MB Notification: Performance of Templates: time 0.03232/0.8016, allocations: 13.82 MB / 0.8678 GB, free: 9.688 MB / 442.7 MB